Skip to content

Commit

Permalink
revert from using grpc.NewClient to grpc.Dial (#46009)
Browse files Browse the repository at this point in the history
Co-authored-by: Gavin Frazar <[email protected]>
  • Loading branch information
tigrato and GavinFrazar authored Aug 29, 2024
1 parent 267fc6f commit aba996f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/proxy/insecure/insecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit aba996f

Please sign in to comment.