forked from TrueCloudLab/frostfs-node
[#607] network: Remove no longer used Address.WriteToNodeInfo
method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
149367cab9
commit
61cc70d899
2 changed files with 0 additions and 26 deletions
|
@ -7,7 +7,6 @@ import (
|
|||
|
||||
"github.com/multiformats/go-multiaddr"
|
||||
manet "github.com/multiformats/go-multiaddr/net"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@ -38,11 +37,6 @@ func (a Address) Equal(addr Address) bool {
|
|||
return a.ma.Equal(addr.ma)
|
||||
}
|
||||
|
||||
// WriteToNodeInfo writes Address to netmap.NodeInfo structure.
|
||||
func (a Address) WriteToNodeInfo(ni *netmap.NodeInfo) {
|
||||
ni.SetAddress(a.ma.String())
|
||||
}
|
||||
|
||||
// HostAddr returns host address in string format.
|
||||
//
|
||||
// Panics if host address cannot be fetched from Address.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue