From f3804cd0b74c6515ef206dabe7b314f2765fc788 Mon Sep 17 00:00:00 2001 From: Jake Gregg Date: Fri, 1 Feb 2019 08:23:41 -0800 Subject: [PATCH] :ok_hand: Adding additional logic to handle this case --- cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cluster.go b/cluster.go index a6ca79d..ed68a42 100644 --- a/cluster.go +++ b/cluster.go @@ -775,6 +775,11 @@ func cmdSlot(cmd Cmder, pos int) int { } func (c *ClusterClient) cmdSlot(cmd Cmder) int { + args := cmd.Args() + if args[0] == "cluster" && args[1] == "getkeysinslot" { + return args[2].(int) + } + cmdInfo := c.cmdInfo(cmd.Name()) return cmdSlot(cmd, cmdFirstKeyPos(cmd, cmdInfo)) }