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 murgatroid99 committed Aug 31, 2023
1 parent d1cb2d5 commit f5218ed
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 f5218ed

Please sign in to comment.