Skip to content

Commit

Permalink
[#1111] control: Rename aliaces
Browse files Browse the repository at this point in the history
`objectSDKAddress` -> `addressSDK`.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
  • Loading branch information
carpawell committed Feb 28, 2022
1 parent 04c58bb commit 21f783d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/services/control/server/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand All @@ -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 {
Expand Down

0 comments on commit 21f783d

Please sign in to comment.