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

fix(request-response): don't keep duplicate addresses (v0.52 backport) #4724

Merged
merged 9 commits into from
Oct 26, 2023

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Oct 25, 2023

Backport of #4700 on v0.52 branch.

  • fix: deduplicate autonat add_server addresses
  • keep peers in HashSet instead of SmallVec
  • change (&HashSet)::into_iter to equivalent iter

@b-zee b-zee changed the base branch from master to v0.52 October 25, 2023 10:14
@b-zee b-zee changed the title fix autonat add server deduplicate (v0.52 backport) fix(request-response): don't keep duplicate addresses (v0.52 backport) Oct 25, 2023
@b-zee
Copy link
Contributor Author

b-zee commented Oct 25, 2023

@thomaseizinger Do I change the CHANGELOG too? I'm not too familiar with back porting and releases in this way.

@thomaseizinger
Copy link
Contributor

@thomaseizinger Do I change the CHANGELOG too? I'm not too familiar with back porting and releases in this way.

Yes please. And a version bump!

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect this is missing a version bump in the root Cargo.toml? Let's see what CI says.

protocols/request-response/CHANGELOG.md Outdated Show resolved Hide resolved
@mxinden
Copy link
Member

mxinden commented Oct 26, 2023

bump version in root Cargo.toml

Thanks!

@b-zee
Copy link
Contributor Author

b-zee commented Oct 26, 2023

Think CI did indeed complain. Please hold my hand here, I mess up something each time with these patches. 😉

@mxinden
Copy link
Member

mxinden commented Oct 26, 2023

I don't think the "Ensure manifest and changelog" failures for unrelated crates need to be fixed here. Taking a look now. Maybe @thomaseizinger has an idea right away.

@mxinden mxinden added the internal-change Pull requests that make internal changes to crates and thus don't need to include a changelog entry. label Oct 26, 2023
@mxinden
Copy link
Member

mxinden commented Oct 26, 2023

I don't think the "Ensure manifest and changelog" failures for unrelated crates need to be fixed here. Taking a look now. Maybe @thomaseizinger has an idea right away.

Failures are due to #4714. It touched various files across many crates adding #[allow(deprecated)]. Under the assumptions that the warnings without it don't show up on the user side, that in itself I guess is not release worthy for each of the crates.

I am adding the internal-change label here. Thus this pull request does not need to block on the above releases either.

@mxinden mxinden merged commit 469bb8b into libp2p:v0.52 Oct 26, 2023
70 checks passed
@mxinden
Copy link
Member

mxinden commented Oct 26, 2023

Tagged and published @b-zee.

@thomaseizinger
Copy link
Contributor

@mxinden I thought we generally don't try and please CI unnecesarily in backports :)

@b-zee b-zee deleted the v0.52-fix-autonat-add-server-deduplicate branch October 27, 2023 06:59
@b-zee
Copy link
Contributor Author

b-zee commented Oct 27, 2023

Thanks a lot, @mxinden! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-change Pull requests that make internal changes to crates and thus don't need to include a changelog entry. send-it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants