diff --git a/config/configgrpc/configgrpc.go b/config/configgrpc/configgrpc.go index 07d6c8c7675..fbb93f61166 100644 --- a/config/configgrpc/configgrpc.go +++ b/config/configgrpc/configgrpc.go @@ -261,7 +261,7 @@ func (gcs *ClientConfig) ToClientConn( if err != nil { return nil, err } - return grpc.NewClient(gcs.sanitizedEndpoint(), grpcOpts...) + return grpc.DialContext(ctx, gcs.sanitizedEndpoint(), grpcOpts...) } func (gcs *ClientConfig) getGrpcDialOptions(