mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
Reduce number of allocations.
This commit is contained in:
@@ -378,7 +378,7 @@ func (c *ClusterClient) cmdSlotAndNode(state *clusterState, cmd Cmder) (int, *cl
|
||||
return 0, node, err
|
||||
}
|
||||
|
||||
cmdInfo := c.cmds[cmd.arg(0)]
|
||||
cmdInfo := c.cmds[cmd.name()]
|
||||
firstKey := cmd.arg(cmdFirstKeyPos(cmd, cmdInfo))
|
||||
slot := hashtag.Slot(firstKey)
|
||||
|
||||
|
Reference in New Issue
Block a user