-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basichost: ensure no duplicates in Addrs output #2980
Conversation
ffab4b6
to
b32e7aa
Compare
b32e7aa
to
0f90bab
Compare
I can help testing this on my cluster once the fix is final |
@Wondertan, The fix is final. Can you check this? |
Might be worth adding a unit test |
0b53b90
to
4d24fc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Bumps https://github.com/libp2p/go-libp2p/releases/tag/v0.36.5 and https://github.com/ipfs/boxo/releases/tag/v0.24.0 Both brings changes we need. In particular libp2p/go-libp2p#2980 and ipfs/boxo#672
Is there any chance that this PR changed the Addrs order when they are returned? I'm experiment an issue in our tests because of that |
@dimartiro Yes. Removing duplicates without allocating means that you have to change the order of the returned Addrs (https://github.com/multiformats/go-multiaddr/blob/d19cf5da7dc590c829b9a4b329341ea8847d4d2a/multiaddr.go#L253). If you don't have duplicates, it shouldn't affect the order. |
@MarcoPolo I don't have duplicates but I think that the fact of using a map is breaking the order of the |
fixes: #2972