]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Drop processing threads a bit
authorMatt Corallo <git@bluematt.me>
Mon, 2 Dec 2019 20:09:47 +0000 (15:09 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 2 Dec 2019 20:09:47 +0000 (15:09 -0500)
src/main.rs

index f9de3d4e1b95f23a11d6c2c777db81570aff9c73..ba326f77d65d76b965b433e6a652b4c4116f5e1f 100644 (file)
@@ -424,7 +424,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) * 3)
+               .blocking_threads(2).core_threads(num_cpus::get().max(1) * 2)
                .build().unwrap();
 
        let _ = trt.block_on_all(future::lazy(|| {