mirror of https://github.com/grpc/grpc-node.git
fix: pick first load balancer call doPick infinite
This commit is contained in:
parent
d1cb2d5f36
commit
f5218edf82
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue