Skip to content

Commit

Permalink
Replace grpc.Dial
Browse files Browse the repository at this point in the history
grpc.Dial is deprecated - replace eith grpoc.NewClient

AB#9784
  • Loading branch information
eccles committed Aug 21, 2024
1 parent 9de169e commit c1d658e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grpcclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (g *Client) Open() error {
var conn *grpc.ClientConn

g.log.Debugf("Open %s client at %v", g.name, g.address)
conn, err = grpc.Dial(g.address, g.options...) //nolint:staticcheck
conn, err = grpc.NewClient(g.address, g.options...)
if err != nil {
return err
}
Expand Down

0 comments on commit c1d658e

Please sign in to comment.