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 eff552e commit 6df8d0f
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 @@ -515,7 +515,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 6df8d0f

Please sign in to comment.