Skip to content

Commit

Permalink
Responded to Doug's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Mar 26, 2021
1 parent 0e7fc5a commit 0d80cb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resolver_conn_wrapper.go
Expand Up @@ -23,6 +23,7 @@ import (
"strings"
"sync"

"google.golang.org/grpc/balancer"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/grpc/internal/grpcsync"
Expand Down Expand Up @@ -97,7 +98,10 @@ func (ccr *ccResolverWrapper) UpdateState(s resolver.State) error {
ccr.addChannelzTraceEvent(s)
}
ccr.curState = s
return ccr.cc.updateResolverState(ccr.curState, nil)
if err := ccr.cc.updateResolverState(ccr.curState, nil); err != balancer.ErrBadResolverState {
return nil
}
return balancer.ErrBadResolverState
}

func (ccr *ccResolverWrapper) ReportError(err error) {
Expand Down

0 comments on commit 0d80cb9

Please sign in to comment.