Skip to content

Commit

Permalink
client: initialize safe config selector when creating ClientConn (#4398)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored May 7, 2021
1 parent 328b1d1 commit c15291b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientconn.go
Original file line number Diff line number Diff line change
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 c15291b

Please sign in to comment.