Skip to content

Commit

Permalink
fix(cluster): fix count in fetchSockets() method
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Feb 20, 2024
1 parent b2d3695 commit 80af4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cluster-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export abstract class ClusterAdapter extends Adapter {
]);
const expectedResponseCount = serverCount - 1;

if (opts.flags?.local || expectedResponseCount === 0) {
if (opts.flags?.local || expectedResponseCount <= 0) {
return localSockets;
}

Expand Down

0 comments on commit 80af4e9

Please sign in to comment.