We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb8de2 commit 5be024fCopy full SHA for 5be024f
packages/grpc-js/src/resolving-load-balancer.ts
@@ -264,7 +264,11 @@ export class ResolvingLoadBalancer implements LoadBalancer {
264
private updateResolution() {
265
this.innerResolver.updateResolution();
266
if (this.currentState === ConnectivityState.IDLE) {
267
- this.updateState(ConnectivityState.CONNECTING, new QueuePicker(this));
+ /* this.latestChildPicker is initialized as new QueuePicker(this), which
268
+ * is an appropriate value here if the child LB policy is unset.
269
+ * Otherwise, we want to delegate to the child here, in case that
270
+ * triggers something. */
271
+ this.updateState(ConnectivityState.CONNECTING, this.latestChildPicker);
272
}
273
this.backoffTimeout.runOnce();
274
0 commit comments