From cf17686321511f8598834d3041cedc45c45ebc9d Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 11 Feb 2022 15:26:02 +0300 Subject: [PATCH] [#1111] control: Rename aliaces `objectSDKAddress` -> `addressSDK`. Signed-off-by: Pavel Karpy --- pkg/services/control/server/gc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/services/control/server/gc.go b/pkg/services/control/server/gc.go index b1cbfa28..3643a91a 100644 --- a/pkg/services/control/server/gc.go +++ b/pkg/services/control/server/gc.go @@ -5,13 +5,13 @@ import ( "fmt" "github.com/nspcc-dev/neofs-node/pkg/services/control" - objectSDKAddress "github.com/nspcc-dev/neofs-sdk-go/object/address" + addressSDK "github.com/nspcc-dev/neofs-sdk-go/object/address" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // DeletedObjectHandler is a handler of objects to be removed. -type DeletedObjectHandler func([]*objectSDKAddress.Address) error +type DeletedObjectHandler func([]*addressSDK.Address) error // DropObjects marks objects to be removed from the local node. // @@ -26,10 +26,10 @@ func (s *Server) DropObjects(_ context.Context, req *control.DropObjectsRequest) } binAddrList := req.GetBody().GetAddressList() - addrList := make([]*objectSDKAddress.Address, 0, len(binAddrList)) + addrList := make([]*addressSDK.Address, 0, len(binAddrList)) for i := range binAddrList { - a := objectSDKAddress.NewAddress() + a := addressSDK.NewAddress() err := a.Unmarshal(binAddrList[i]) if err != nil {