Skip to content

Commit

Permalink
[v1.37.x] client: initialize safe config selector when creating Clien…
Browse files Browse the repository at this point in the history
…tConn (grpc#4398)
  • Loading branch information
dfawley authored and menghanl committed May 10, 2021
1 parent da38aa1 commit cfa6f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientconn.go
Expand Up @@ -143,6 +143,7 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *
firstResolveEvent: grpcsync.NewEvent(),
}
cc.retryThrottler.Store((*retryThrottler)(nil))
cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{nil})
cc.ctx, cc.cancel = context.WithCancel(context.Background())

for _, opt := range opts {
Expand Down

0 comments on commit cfa6f62

Please sign in to comment.