projects
/
dnsseed-rust
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd60f2
)
Decrease thread count somewhat
author
Matt Corallo
<git@bluematt.me>
Sun, 19 Jul 2020 21:15:35 +0000
(17:15 -0400)
committer
Matt Corallo
<git@bluematt.me>
Sun, 19 Jul 2020 21:15:35 +0000
(17:15 -0400)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index a66b9392269e832d1d6e559378c772c9275c5ec5..c496f14110d9648da2deafcafebf77ab2cd23f75 100644
(file)
--- 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(|| {