Explorar o código

Update commandinfo.go

Run `gofmt -s -w .` on the repo.
Guillaume J. Charmes %!s(int64=11) %!d(string=hai) anos
pai
achega
c16e77c84f
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      redis/commandinfo.go

+ 8 - 8
redis/commandinfo.go

@@ -30,14 +30,14 @@ type commandInfo struct {
 }
 
 var commandInfos = map[string]commandInfo{
-	"WATCH":      commandInfo{set: watchState},
-	"UNWATCH":    commandInfo{clear: watchState},
-	"MULTI":      commandInfo{set: multiState},
-	"EXEC":       commandInfo{clear: watchState | multiState},
-	"DISCARD":    commandInfo{clear: watchState | multiState},
-	"PSUBSCRIBE": commandInfo{set: subscribeState},
-	"SUBSCRIBE":  commandInfo{set: subscribeState},
-	"MONITOR":    commandInfo{set: monitorState},
+	"WATCH":      {set: watchState},
+	"UNWATCH":    {clear: watchState},
+	"MULTI":      {set: multiState},
+	"EXEC":       {clear: watchState | multiState},
+	"DISCARD":    {clear: watchState | multiState},
+	"PSUBSCRIBE": {set: subscribeState},
+	"SUBSCRIBE":  {set: subscribeState},
+	"MONITOR":    {set: monitorState},
 }
 
 func lookupCommandInfo(commandName string) commandInfo {