forked from TrueCloudLab/frostfs-node
[#645] placement/traverser: Rename Key method of Node type to PublicKey
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3d3d30560a
commit
2d441a4cc6
2 changed files with 3 additions and 3 deletions
|
@ -127,7 +127,7 @@ loop:
|
|||
|
||||
addr := addrs[i]
|
||||
|
||||
isLocal := t.isLocalKey(addr.Key())
|
||||
isLocal := t.isLocalKey(addr.PublicKey())
|
||||
|
||||
var workerPool util.WorkerPool
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue