From 9369ba38b1a09b11e6895f0c31e70427471f2c59 Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Thu, 29 Aug 2024 08:53:35 +0100 Subject: [PATCH] revert from using grpc.NewClient to grpc.Dial (#46010) Co-authored-by: Gavin Frazar --- 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 97f7414be6101..28ef99c8cbb0e 100644 --- a/lib/client/proxy/insecure/insecure.go +++ b/lib/client/proxy/insecure/insecure.go @@ -77,7 +77,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),