diff --git a/pkg/services/object/put/distributed.go b/pkg/services/object/put/distributed.go index 7adae55c..b405861c 100644 --- a/pkg/services/object/put/distributed.go +++ b/pkg/services/object/put/distributed.go @@ -127,7 +127,7 @@ loop: addr := addrs[i] - isLocal := t.isLocalKey(addr.Key()) + isLocal := t.isLocalKey(addr.PublicKey()) var workerPool util.WorkerPool diff --git a/pkg/services/object_manager/placement/traverser.go b/pkg/services/object_manager/placement/traverser.go index a1be3d87..e86d74a1 100644 --- a/pkg/services/object_manager/placement/traverser.go +++ b/pkg/services/object_manager/placement/traverser.go @@ -131,8 +131,8 @@ func (x Node) Addresses() network.AddressGroup { return x.addresses } -// Key returns public key in a binary format. Should not be mutated. -func (x Node) Key() []byte { +// PublicKey returns public key in a binary format. Should not be mutated. +func (x Node) PublicKey() []byte { return x.key }