mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Expose cluster node id in ClusterSlots.
This commit is contained in:
@ -22,11 +22,11 @@ var _ = Describe("ClusterClient", func() {
|
||||
var subject *ClusterClient
|
||||
|
||||
var populate = func() {
|
||||
subject.setSlots([]ClusterSlotInfo{
|
||||
{0, 4095, []string{"127.0.0.1:7000", "127.0.0.1:7004"}},
|
||||
{12288, 16383, []string{"127.0.0.1:7003", "127.0.0.1:7007"}},
|
||||
{4096, 8191, []string{"127.0.0.1:7001", "127.0.0.1:7005"}},
|
||||
{8192, 12287, []string{"127.0.0.1:7002", "127.0.0.1:7006"}},
|
||||
subject.setSlots([]ClusterSlot{
|
||||
{0, 4095, []ClusterNode{{"", "127.0.0.1:7000"}, {"", "127.0.0.1:7004"}}},
|
||||
{12288, 16383, []ClusterNode{{"", "127.0.0.1:7003"}, {"", "127.0.0.1:7007"}}},
|
||||
{4096, 8191, []ClusterNode{{"", "127.0.0.1:7001"}, {"", "127.0.0.1:7005"}}},
|
||||
{8192, 12287, []ClusterNode{{"", "127.0.0.1:7002"}, {"", "127.0.0.1:7006"}}},
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user