Skip to content

Commit

Permalink
Set nodelay on coordinator's P2P sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Sep 7, 2023
1 parent 2472ec7 commit 06a6cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coordinator/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl LibP2p {
// Uses noise for authentication, yamux for multiplexing
// TODO: Do we want to add a custom authentication protocol to only accept connections from
// fellow validators? Doing so would reduce the potential for spam
let transport = libp2p_tokio::Transport::new(Config::default())
let transport = libp2p_tokio::Transport::new(Config::default().nodelay(true))
.upgrade(upgrade::Version::V1)
.authenticate(noise::Config::new(&throwaway_key_pair).unwrap())
.multiplex(yamux::Config::default())
Expand Down

0 comments on commit 06a6cd2

Please sign in to comment.