netmap: Do not iterate over external addresses in Node #1057
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1057
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:fix-external-addr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com
b5d5517c1c
to1ecb251b9e
@ -18,11 +18,6 @@ func (x Node) PublicKey() []byte {
// and passes them into f. Handler MUST NOT be nil.
func (x Node) IterateAddresses(f func(string) bool) {
(netmap.NodeInfo)(x).IterateNetworkEndpoints(f)
for _, addr := range (netmap.NodeInfo)(x).ExternalAddresses() {
Could you explain, please, why?
This wrapper still contains
ExternalAddresses
field, which is used in places where we need them.In
IterateAddresses
only internal are expected.Though, this line was here from the initial implementation