-
Notifications
You must be signed in to change notification settings - Fork 999
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
refactor!: Move ConnectionId
and PendingPoint
to libp2p-swarm
#3221
refactor!: Move ConnectionId
and PendingPoint
to libp2p-swarm
#3221
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.
Looks good to me, it's just missing the CHANGELOG.md
entries and the Cargo.toml
bumps
Thanks @umgefahren ! This is a breaking change albeit a trivial one. I think we should hold off merging this until we merge something breaking that we definitely want. For one, this is going to save trivial PRs like this one from making a lot of version bumps and changelog entries. Additionally, it allows us to accumulate features in master without breaking changes. Which is a good thing IMO. Thoughts @libp2p/rust-libp2p-maintainers ? |
Don't have a strong opinion but sounds reasonable. |
Given that we know what the next version major will be, we could also create a milestone to plan it. That could also come in handy for deprecations that we've been making: We often open a PR already at the time of deprecating things where we remove the deprecated items. Those could also be added to such a milestone. |
This pull request has merge conflicts. Could you please resolve them @umgefahren? 🙏 |
Done! Why is the CI still failing? I thought that was fixed. We should really transition away from protoc... |
This pull request has merge conflicts. Could you please resolve them @umgefahren? 🙏 |
In case we merge #3196 and thus release a breaking change of |
It is being worked on :) |
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.
Please also move PendingPoint
as part of this and make it pub(crate)
.
#3196 is merged, thus we can easily include it in the next release cycle if you like @umgefahren. |
Sounds good to me. I have to resolve the merge conflicts first |
Friendly ping @umgefahren. I want this for #3254, let me know if you are still working on this, otherwise I'll push it forward! |
Please go ahead. I’m still preparing for exams |
ConnectionId
and PendingPoint
to libp2p-swarm
ConnectionId
and PendingPoint
to libp2p-swarm
ConnectionId
and PendingPoint
to libp2p-swarm
This belongs into `libp2p-core`.
Ah damn mergify, can't stack PRs from forks ... |
Description
Both of these are only needed as part of
libp2p-swarm
. Them residing inlibp2p-core
is a left-over from whenlibp2p-core
still containedPool
.Closes #3200.
Notes
As requested by @thomaseizinger I moved ConnectionId from core to swarm. I also changed every use of the struct from core to swarm.I moved theConnectionId
struct and changed every relevant use. I also want to talk about the necessity of operator overloading.Links to any relevant issues
Open Questions
None
Change checklist