Skip to content

Commit

Permalink
linter: Fix staticcheck
Browse files Browse the repository at this point in the history
SA1019: grpc.Dial is deprecated: use NewClient instead.  Will be supported throughout 1.x.

Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Sep 3, 2024
1 parent 77594ad commit fe6149d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/neofs/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const (

// NewTreeClient creates instance of TreeClient using provided address and create grpc connection.
func NewTreeClient(ctx context.Context, addr string, key *keys.PrivateKey) (*TreeClient, error) {
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return nil, fmt.Errorf("did not connect: %v", err)
}
Expand Down

0 comments on commit fe6149d

Please sign in to comment.