forked from TrueCloudLab/frostfs-node
[#1644] services/tree: Do not use deprecated gRPC options
Get rid of `grpc.WithInsecure`. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
8d0884e74f
commit
4558f30575
2 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/nspcc-dev/neofs-node/pkg/network"
|
||||
cid "github.com/nspcc-dev/neofs-sdk-go/container/id"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
)
|
||||
|
||||
// Synchronize tries to synchronize log starting from the last stored height.
|
||||
|
@ -33,7 +34,7 @@ func (s *Service) Synchronize(ctx context.Context, cid cid.ID, treeID string) er
|
|||
return false
|
||||
}
|
||||
|
||||
cc, err := grpc.DialContext(ctx, a.URIAddr(), grpc.WithInsecure())
|
||||
cc, err := grpc.DialContext(ctx, a.URIAddr(), grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
if err != nil {
|
||||
// Failed to connect, try the next address.
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue