Correct disabling of Nagle's algorithm

This commit is contained in:
Luke Parker
2025-01-11 06:54:43 -05:00
parent 74106b025f
commit f501d46d44

View File

@@ -188,7 +188,7 @@ impl Libp2p {
let mut swarm = SwarmBuilder::with_existing_identity(identity::Keypair::generate_ed25519()) let mut swarm = SwarmBuilder::with_existing_identity(identity::Keypair::generate_ed25519())
.with_tokio() .with_tokio()
.with_tcp(TcpConfig::default().nodelay(false), new_only_validators, new_yamux) .with_tcp(TcpConfig::default().nodelay(true), new_only_validators, new_yamux)
.unwrap() .unwrap()
.with_behaviour(|_| Behavior { .with_behaviour(|_| Behavior {
allow_list: allow_block_list::Behaviour::default(), allow_list: allow_block_list::Behaviour::default(),