diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:36:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:36:44 +0300 |
commit | a8f7ef51d53adc9a47ad0a6ff871d943ffb48039 (patch) | |
tree | 75e6062db63deacc0c471421c7b19a2f34732f4f | |
parent | 285ddea024ab3204f2032adfa3bb61f7ee238418 (diff) | |
download | summain-rs-a8f7ef51d53adc9a47ad0a6ff871d943ffb48039.tar.gz |
worker thread count
-rw-r--r-- | src/bin/summain.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs index 751a104..66e9f9f 100644 --- a/src/bin/summain.rs +++ b/src/bin/summain.rs @@ -5,7 +5,7 @@ use summain::ManifestEntry; fn main() -> anyhow::Result<()> { let runtime = tokio::runtime::Builder::new_multi_thread() - .worker_threads(2) + .worker_threads(num_cpus::get()) .max_blocking_threads(num_cpus::get()) .build()?; runtime.block_on(async { async_main().await })?; |