Przeglądaj źródła

undo accidental commit to cli.rs

x 3 lat temu
rodzic
commit
662c9936c6
1 zmienionych plików z 1 dodań i 1 usunięć
  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()