Skip to content

Commit

Permalink
revert from using grpc.NewClient to grpc.Dial (#46010)
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 8872321 commit 9369ba3
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 9369ba3

Please sign in to comment.