From 7bee4bc61c3fb5c748be45f97ea9a108ae79db0b Mon Sep 17 00:00:00 2001 From: Revertron Date: Sun, 25 Apr 2021 00:04:30 +0200 Subject: [PATCH] Fixes for previous release2. --- Cargo.toml | 2 +- src/p2p/network.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {