diff --git a/Cargo.toml b/Cargo.toml index 72309b9..2323426 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.4.28" +version = "0.4.29" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/src/p2p/network.rs b/src/p2p/network.rs index de98736..ae2634c 100644 --- a/src/p2p/network.rs +++ b/src/p2p/network.rs @@ -356,7 +356,7 @@ fn read_message(stream: &mut TcpStream) -> Result, ()> { // We give every connection no more than 200ms to read a message if instant.elapsed().as_millis() < MAX_READ_BLOCK_TIME { // We need to sleep a bit, otherwise it can eat CPU - let delay = Duration::from_millis(10); + let delay = Duration::from_millis(2); thread::sleep(delay); continue; } else {