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 }