Skip to content

Commit b796fc3

Browse files
committed
added the fix from redis#1693 to try and fix auto pipelining in redis cluster
1 parent 92aefaa commit b796fc3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/autoPipelining.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ export function executeWithAutoPipelining(
147147
// ioredis will only flatten one level of the array, in the Command constructor.
148148
const prefix = client.options.keyPrefix || "";
149149
const slotKey = client.isCluster
150-
? client.slots[
151-
calculateSlot(`${prefix}${getFirstValueInFlattenedArray(args)}`)
152-
].join(",")
150+
? calculateSlot(`${prefix}${getFirstValueInFlattenedArray(args)}`)
153151
: "main";
154152

155153
if (!client._autoPipelines.has(slotKey)) {

0 commit comments

Comments
 (0)