From 4e63c2835e0de85ed3e1f3c9a9b946466c25bd0d Mon Sep 17 00:00:00 2001 From: Gavin Frazar Date: Wed, 28 Aug 2024 23:52:26 -0700 Subject: [PATCH] revert from using grpc.NewClient to grpc.Dial (#46006) --- lib/client/proxy/insecure/insecure.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client/proxy/insecure/insecure.go b/lib/client/proxy/insecure/insecure.go index 0df4e11827b6c..7818cf773c06b 100644 --- a/lib/client/proxy/insecure/insecure.go +++ b/lib/client/proxy/insecure/insecure.go @@ -81,7 +81,8 @@ func NewConnection( client.WithALPNConnUpgrade(alpnConnUpgrade), ) - conn, err := grpc.NewClient( + //nolint:staticcheck // ignore deprecation until https://github.com/grpc/grpc-go/issues/7556 is fixed, at which point we should switch to grpc.NewClient. + conn, err := grpc.Dial( params.ProxyServer, grpc.WithContextDialer(client.GRPCContextDialer(dialer)), grpc.WithUnaryInterceptor(metadata.UnaryClientInterceptor),