Skip to content

Commit

Permalink
added the fix from redis#1693 to try and fix auto pipelining in redis…
Browse files Browse the repository at this point in the history
… cluster
  • Loading branch information
Boohi committed Feb 13, 2023
1 parent 92aefaa commit b796fc3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/autoPipelining.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,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)) {
Expand Down

0 comments on commit b796fc3

Please sign in to comment.