From 704adb23307e537fbb4c6bfd464853e3d4d0d705 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 19 Jul 2020 17:15:35 -0400 Subject: [PATCH] Decrease thread count somewhat --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(|| { -- 2.39.5