fix: pick first load balancer call doPick infinite

This commit is contained in:
gusumuzhe 2023-08-29 17:39:38 +08:00 committed by Michael Lumish
parent d1cb2d5f36
commit f5218edf82
1 changed files with 1 additions and 1 deletions

View File

@ -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());