]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Decrease thread count somewhat
authorMatt Corallo <git@bluematt.me>
Sun, 19 Jul 2020 21:15:35 +0000 (17:15 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 19 Jul 2020 21:15:35 +0000 (17:15 -0400)
src/main.rs

index a66b9392269e832d1d6e559378c772c9275c5ec5..c496f14110d9648da2deafcafebf77ab2cd23f75 100644 (file)
@@ -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(|| {