Skip to content

Commit

Permalink
bugfix: Fix parsing of discrete slots in cluster nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Dec 22, 2023
1 parent 3ffd3a9 commit 6aaab51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/cluster_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func GetRedisClusterNodes(address string, username string, password string, Tls
slot = append(slot, j)
slotsCount++
}
slots = append(slots, slot)
}
slots = append(slots, slot)
}
if slotsCount != 16384 {
log.Panicf("invalid cluster nodes slots. slots_count=%v, address=%v", slotsCount, address)
Expand Down

0 comments on commit 6aaab51

Please sign in to comment.