-
Notifications
You must be signed in to change notification settings - Fork 964
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
feat(swarm): remove deprecated items #3956
Conversation
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.
Some of these are unreleased, please cross check them with docs.rs! :)
@thomaseizinger Indeed, I had missed some on On the other hand, pub struct SwarmPollParameters<'a> {
local_peer_id: &'a PeerId,
supported_protocols: &'a [Vec<u8>],
listened_addrs: Vec<&'a Multiaddr>,
external_addrs: &'a Addresses,
} to become (if I'm correct) pub struct SwarmPollParameters<'a> {
local_peer_id: &'a PeerId,
supported_protocols: &'a [Vec<u8>],
listened_addrs: Vec<&'a Multiaddr>,
external_addrs: &'a ExternalAddresses,
} And in my opinion the same thing applies for |
Slightly yes. The Check how |
@thomaseizinger Sure, then my concern was about this part: let score = params
.external_addresses()
.find_map(|r| (r.addr == address).then_some(r.score))
.unwrap_or(AddressScore::Finite(0)); that has to be modified to something like: let score = self
.external_addresses
.iter()
.find_map(|r| (r == &address).then_some(r.score)); But this is not possible I think because there is no |
@tcoratger |
@mxinden Yes right, so maybe we are waiting for this PR to merge, it will make things easier here because there will be no more to deal with this problem and there is no point in finding a solution here if |
This pull request has merge conflicts. Could you please resolve them @tcoratger? 🙏 |
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.
Awesome, thanks for updating the PR!
One question.
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.
Two additional questions (apply to all doctest changes)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
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.
Awesome, thank you!
Description
Related: #3647.
Notes & open questions
Change checklist