Skip to content
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: migrate upgrades to {In,Out}boundConnectionUpgrade #4695

Merged
merged 5 commits into from
Oct 21, 2023

Conversation

thomaseizinger
Copy link
Contributor

Description

This needs to be done in one PR because we need to remove the blanket impl at the same time we add the new ones. I also chose to duplicate SelectUpgrade for the libp2p::SwarmBuilder because the SelectUpgrade within libp2p-core is really only meant to be used for protocol upgrade (which will go away at some point). This tiny bit of code duplication doesn't hurt and will help us in the future.

Resolves: #4521.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@thomaseizinger thomaseizinger added this to the v0.53.0 milestone Oct 20, 2023
@thomaseizinger thomaseizinger changed the title feat: migrate connection upgrades to {In,Out}boundConnectionUpgrade refactor: migrate connection upgrades to {In,Out}boundConnectionUpgrade Oct 20, 2023
@thomaseizinger thomaseizinger changed the title refactor: migrate connection upgrades to {In,Out}boundConnectionUpgrade refactor: migrate upgrades to {In,Out}boundConnectionUpgrade Oct 20, 2023
@thomaseizinger
Copy link
Contributor Author

I think we should probably also migrate away from UpgradeInfo. That will allows us to do #4697.

@mergify mergify bot merged commit ed02a10 into master Oct 21, 2023
71 checks passed
@mergify mergify bot deleted the feat/migrate-upgrade-traits branch October 21, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change all uses of {In,Out}boundUpgrade in transports to {In,Out}boundConnectionUpgrade
2 participants