grpc: remove remaining usages of grpc.WithInsecure() (#5246)

This commit is contained in:
Easwar Swaminathan
2022-03-17 10:17:03 -07:00
committed by GitHub
parent fbe4ccbc1e
commit 6c3ccbe89a
5 changed files with 26 additions and 22 deletions

View File

@ -282,8 +282,8 @@ func WithReturnConnectionError() DialOption {
// WithCredentialsBundle or WithPerRPCCredentials) which require transport
// security is incompatible and will cause grpc.Dial() to fail.
//
// Deprecated: use WithTransportCredentials and insecure.NewCredentials() instead.
// Will be supported throughout 1.x.
// Deprecated: use WithTransportCredentials and insecure.NewCredentials()
// instead. Will be supported throughout 1.x.
func WithInsecure() DialOption {
return newFuncDialOption(func(o *dialOptions) {
o.copts.TransportCredentials = insecure.NewCredentials()