use number of logical cores for tokio worker thread count

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and June committed 2024-04-26 02:03:40 -04:00
1 parent 54eb634588
commit 33afd60026
1 file changed
+1 -1
+1 -1
View File
@@ -515,7 +515,7 @@ fn init(args: clap::Args) -> Result<Server, Error> {
.enable_io()
.enable_time()
.thread_name("conduwuit:worker")
.worker_threads(num_cpus::get_physical())
.worker_threads(num_cpus::get())
.build()
.unwrap(),