Skip to content

Commit

Permalink
client: initialize safe config selector when creating ClientConn
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed May 7, 2021
1 parent aff517b commit bd9887b
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 bd9887b

Please sign in to comment.