浏览代码

Update commandinfo.go

Run `gofmt -s -w .` on the repo.
Guillaume J. Charmes 11 年之前
父节点
当前提交
c16e77c84f
共有 1 个文件被更改,包括 8 次插入8 次删除
  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 {