netmap: Do not iterate over external addresses in Node #1057

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-external-addr into master 2024-03-29 20:46:25 +00:00
Owner

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2024-03-27 12:21:50 +00:00
fyrchik requested review from storage-core-developers 2024-03-27 12:21:50 +00:00
fyrchik force-pushed fix-external-addr from b5d5517c1c to 1ecb251b9e 2024-03-27 12:22:11 +00:00 Compare
acid-ant approved these changes 2024-03-27 12:30:51 +00:00
aarifullin reviewed 2024-03-28 10:27:50 +00:00
@ -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() {
Member

Could you explain, please, why?

Could you explain, please, why?
Author
Owner

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

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
aarifullin approved these changes 2024-03-28 10:27:52 +00:00
fyrchik merged commit fd8cdb9671 into master 2024-03-29 20:46:25 +00:00
fyrchik deleted branch fix-external-addr 2024-03-29 20:46:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1057
No description provided.