mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: Consistently re-resolve when idle
This commit is contained in:
parent
657a4f980f
commit
478900d191
@ -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",
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user