mirror of
https://github.com/serai-dex/serai.git
synced 2025-02-02 11:16:41 +00:00
Set nodelay on coordinator's P2P sockets
This commit is contained in:
parent
2472ec7ba8
commit
06a6cd29b0
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue