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

Update libp2p to 0.54.1, remove unnecessary method call #3046

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nazar-pc
Copy link
Member

TCP_NODELAY is disabled by default since libp2p-tcp 0.41.1, while we already used 0.42.0. Also there was some unnecessary cloning present that clippy didn't catch for some reason.

Code contributor checklist:

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

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

The code change merged to libp2p does not do what its release notes say, and a fix hasn’t been merged yet.

@@ -24,15 +23,11 @@ pub(super) fn build_transport(
timeout: Duration,
yamux_config: YamuxConfig,
) -> io::Result<Boxed<(PeerId, StreamMuxerBox)>> {
let wrapped_tcp = {
let tcp_config = GenTcpConfig::default().nodelay(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

it seems like this is still required, because the merged PR got the setting the wrong way around, and used Some(false):
https://github.com/libp2p/rust-libp2p/pull/5469/files#r1758528479

Copy link
Member Author

Choose a reason for hiding this comment

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

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants