From: Matt Corallo Date: Sun, 19 Jul 2020 21:15:35 +0000 (-0400) Subject: Decrease thread count somewhat X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=704adb23307e537fbb4c6bfd464853e3d4d0d705;p=dnsseed-rust Decrease thread count somewhat --- diff --git a/src/main.rs b/src/main.rs index a66b939..c496f14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -422,7 +422,7 @@ fn main() { unsafe { REQUEST_BLOCK = Some(Box::new(Mutex::new(Arc::new((0, genesis_block(Network::Bitcoin).bitcoin_hash(), genesis_block(Network::Bitcoin)))))) }; let trt = tokio::runtime::Builder::new() - .blocking_threads(2).core_threads(num_cpus::get().max(1) * 2) + .blocking_threads(2).core_threads(num_cpus::get().max(1) + 1) .build().unwrap(); let _ = trt.block_on_all(future::lazy(|| {