From 0d850a1d11d5a5daf8ad3c8d47d5db6bbe05ed81 Mon Sep 17 00:00:00 2001 From: Paul Hewlett Date: Tue, 20 Aug 2024 09:40:56 +0100 Subject: [PATCH] Replace grpc.Dial grpc.Dial is deprecated - replace eith grpoc.NewClient AB#9784 --- grpcclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpcclient/client.go b/grpcclient/client.go index d875a8d..a91cd89 100644 --- a/grpcclient/client.go +++ b/grpcclient/client.go @@ -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 }