mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 04:58:06 +01:00
Fix slot assignment when building a cluster for tests.
This commit is contained in:
committed by
Jon Chambers
parent
fc9fa2614d
commit
db9b7ca447
@@ -113,7 +113,7 @@ public abstract class AbstractRedisClusterTest {
|
||||
final int startInclusive = i * slotsPerNode;
|
||||
final int endExclusive = i == nodes.length - 1 ? MAX_SLOT : (i + 1) * slotsPerNode;
|
||||
|
||||
final RedisClient assignSlotClient = RedisClient.create(RedisURI.create("127.0.0.1", nodes[0].ports().get(0)));
|
||||
final RedisClient assignSlotClient = RedisClient.create(RedisURI.create("127.0.0.1", nodes[i].ports().get(0)));
|
||||
|
||||
try {
|
||||
final int[] slots = new int[endExclusive - startInclusive];
|
||||
|
||||
Reference in New Issue
Block a user