client: initialize safe config selector when creating ClientConn (#4398)

This commit is contained in:
Doug Fawley
2021-05-07 15:24:10 -07:00
committed by GitHub
parent 328b1d171a
commit c15291b0f5

View File

@ -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 {