Просмотр исходного кода

undo accidental commit to cli.rs

x 2 лет назад
Родитель
Сommit
662c9936c6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/util/cli.rs

+ 1 - 1
src/util/cli.rs

@@ -199,7 +199,7 @@ macro_rules! async_daemonize {
             }
 
             // https://docs.rs/smol/latest/smol/struct.Executor.html#examples
-            let n_threads = 1;
+            let n_threads = std::thread::available_parallelism().unwrap().get();
             let ex = std::sync::Arc::new(smol::Executor::new());
             let (signal, shutdown) = smol::channel::unbounded::<()>();
             let (_, result) = easy_parallel::Parallel::new()