Skip to content

Commit

Permalink
Refine service config error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jul 23, 2020
1 parent 1fc0895 commit f05e9fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/grpc-js/src/resolving-load-balancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export class ResolvingLoadBalancer implements LoadBalancer {
private currentState: ConnectivityState = ConnectivityState.IDLE;
/**
* The service config object from the last successful resolution, if
* available. A value of undefined indicates that there has not yet
* been a successful resolution, or that the last succesful resolution
* explicitly provided a null service config.
* available. A value of null indicates that we have not yet received a valid
* service config from the resolver.
*/
private previousServiceConfig: ServiceConfig | null = null;

Expand Down Expand Up @@ -131,7 +130,7 @@ export class ResolvingLoadBalancer implements LoadBalancer {
// Step 4 and 5
if (serviceConfigError === null) {
// Step 5
this.previousServiceConfig = this.defaultServiceConfig;
this.previousServiceConfig = null;
workingServiceConfig = this.defaultServiceConfig;
} else {
// Step 4
Expand Down

0 comments on commit f05e9fb

Please sign in to comment.