projects
/
dnsseed-rust
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
515fa38
)
Drop processing threads a bit
author
Matt Corallo
<git@bluematt.me>
Mon, 2 Dec 2019 20:09:47 +0000
(15:09 -0500)
committer
Matt Corallo
<git@bluematt.me>
Mon, 2 Dec 2019 20:09:47 +0000
(15:09 -0500)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index f9de3d4e1b95f23a11d6c2c777db81570aff9c73..ba326f77d65d76b965b433e6a652b4c4116f5e1f 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-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()
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(|| {
.build().unwrap();
let _ = trt.block_on_all(future::lazy(|| {