Skip to content

Commit

Permalink
Fix a reference to connection pool nodes, this time a bit more correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Slota <[email protected]>
  • Loading branch information
martinslota committed Jun 10, 2024
1 parent 788361c commit 0deaeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Pipeline.prototype.exec = function (callback: Callback): Promise<Array<any>> {
if (_this.isCluster) {
node = {
slot: pipelineSlot,
redis: _this.redis.connectionPool.nodes.all[_this.preferKey],
redis: _this.redis.connectionPool.getInstanceByKey(_this.preferKey),
};
}

Expand Down

0 comments on commit 0deaeba

Please sign in to comment.