Skip to content

Commit

Permalink
fix: make autopipeline group commands by slot instead of by node
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavotoyota committed Dec 15, 2022
1 parent 807cfc0 commit d11ddf5
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 @@ -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)) {
Expand Down

0 comments on commit d11ddf5

Please sign in to comment.