Skip to content

Commit

Permalink
Merge pull request #2559 from gusumuzhe/fix/load-balancer-infinite-loop
Browse files Browse the repository at this point in the history
Fix pick-first-load-balancer pick subchannel lost state listener
  • Loading branch information
murgatroid99 committed Aug 29, 2023
2 parents 9272aee + 613c914 commit 8d532f9
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
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 8d532f9

Please sign in to comment.