[#645] placement/traverser: Rename Key method of Node type to PublicKey

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-09-28 08:17:11 +03:00 committed by Alex Vanin
parent 3d3d30560a
commit 2d441a4cc6
2 changed files with 3 additions and 3 deletions

View file

@ -127,7 +127,7 @@ loop:
addr := addrs[i]
isLocal := t.isLocalKey(addr.Key())
isLocal := t.isLocalKey(addr.PublicKey())
var workerPool util.WorkerPool

View file

@ -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
}