forked from TrueCloudLab/frostfs-node
[#1057] netmap: Do not iterate over external addresses in Node
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
0990a9b0bd
commit
fd8cdb9671
1 changed files with 0 additions and 5 deletions
|
@ -18,11 +18,6 @@ func (x Node) PublicKey() []byte {
|
||||||
// and passes them into f. Handler MUST NOT be nil.
|
// and passes them into f. Handler MUST NOT be nil.
|
||||||
func (x Node) IterateAddresses(f func(string) bool) {
|
func (x Node) IterateAddresses(f func(string) bool) {
|
||||||
(netmap.NodeInfo)(x).IterateNetworkEndpoints(f)
|
(netmap.NodeInfo)(x).IterateNetworkEndpoints(f)
|
||||||
for _, addr := range (netmap.NodeInfo)(x).ExternalAddresses() {
|
|
||||||
if f(addr) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NumberOfAddresses returns number of announced network addresses.
|
// NumberOfAddresses returns number of announced network addresses.
|
||||||
|
|
Loading…
Reference in a new issue