Skip to content

Commit ecc985b

Browse files
committed
fix(osscluster): typo
1 parent 2bbcdaa commit ecc985b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

osscluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,15 +1583,15 @@ func (c *ClusterClient) processTxPipeline(ctx context.Context, cmds []Cmder) err
15831583
func (c *ClusterClient) slottedKeyedCommands(cmds []Cmder) map[int][]Cmder {
15841584
cmdsSlots := map[int][]Cmder{}
15851585

1586-
prefferedRandomSlot := -1
1586+
preferredRandomSlot := -1
15871587
for _, cmd := range cmds {
15881588
if cmdFirstKeyPos(cmd) == 0 {
15891589
continue
15901590
}
15911591

1592-
slot := c.cmdSlot(cmd, prefferedRandomSlot)
1593-
if prefferedRandomSlot == -1 {
1594-
prefferedRandomSlot = slot
1592+
slot := c.cmdSlot(cmd, preferredRandomSlot)
1593+
if preferredRandomSlot == -1 {
1594+
preferredRandomSlot = slot
15951595
}
15961596

15971597
cmdsSlots[slot] = append(cmdsSlots[slot], cmd)

0 commit comments

Comments
 (0)