grpc-js: Consistently re-resolve when idle

This commit is contained in:
Michael Lumish 2022-04-14 16:51:16 -07:00
parent 657a4f980f
commit 478900d191
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.6.4",
"version": "1.6.5",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

View File

@ -298,7 +298,6 @@ export class ResolvingLoadBalancer implements LoadBalancer {
}
exitIdle() {
this.childLoadBalancer.exitIdle();
if (this.currentState === ConnectivityState.IDLE || this.currentState === ConnectivityState.TRANSIENT_FAILURE) {
if (this.backoffTimeout.isRunning()) {
this.continueResolving = true;
@ -306,6 +305,7 @@ export class ResolvingLoadBalancer implements LoadBalancer {
this.updateResolution();
}
}
this.childLoadBalancer.exitIdle();
}
updateAddressList(