Skip to content

Commit

Permalink
fix: pick first load balancer call doPick infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
gusumuzhe authored and zhangchao04 committed Aug 29, 2023
1 parent 9272aee commit 613c914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/load-balancer-pick-first.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class PickFirstLoadBalancer implements LoadBalancer {
}

private pickSubchannel(subchannel: SubchannelInterface) {
if (subchannel === this.currentPick) {
if (this.currentPick && subchannel.realSubchannelEquals(this.currentPick)) {
return;
}
trace('Pick subchannel with address ' + subchannel.getAddress());
Expand Down

0 comments on commit 613c914

Please sign in to comment.