From 5a902fc9d1f17590ccc2a577d39cc02e9ebaf5dc Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 11 Jun 2014 16:49:17 +0800 Subject: [PATCH] set args must be 2 --- server/cmd_kv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmd_kv.go b/server/cmd_kv.go index a6bdcbd..1c42cec 100644 --- a/server/cmd_kv.go +++ b/server/cmd_kv.go @@ -20,7 +20,7 @@ func getCommand(c *client) error { func setCommand(c *client) error { args := c.args - if len(args) < 2 { + if len(args) != 2 { return ErrCmdParams }