diff --git a/index.ts b/index.ts index 7913630a19..3bbb4c9d94 100644 --- a/index.ts +++ b/index.ts @@ -19,4 +19,3 @@ export function createClient>( modules }); } - diff --git a/packages/client/lib/cluster/cluster-slots.ts b/packages/client/lib/cluster/cluster-slots.ts index f65411d797..4c53445b68 100644 --- a/packages/client/lib/cluster/cluster-slots.ts +++ b/packages/client/lib/cluster/cluster-slots.ts @@ -82,7 +82,7 @@ export default class RedisClusterSlots { 10 ); + await Promise.all( + cluster.getMasters().map(({ client }) => { + return client.clusterSetSlot(slot, ClusterSlotStates.NODE, to!.id); + }) + ); + // should be able to get the key from the new node assert.equal( await cluster.get(key),