diff --git a/lib/autoPipelining.ts b/lib/autoPipelining.ts index 410507f7..8fbe5ee7 100644 --- a/lib/autoPipelining.ts +++ b/lib/autoPipelining.ts @@ -146,9 +146,7 @@ export function executeWithAutoPipelining( // ioredis will only flatten one level of the array, in the Command constructor. const prefix = client.options.keyPrefix || ""; const slotKey = client.isCluster - ? client.slots[ - calculateSlot(`${prefix}${getFirstValueInFlattenedArray(args)}`) - ].join(",") + ? calculateSlot(`${prefix}${getFirstValueInFlattenedArray(args)}`) : "main"; if (!client._autoPipelines.has(slotKey)) {