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 2024-04-25 15:19:47 -07:00 committed by June
parent 54eb634588
commit 33afd60026
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ fn init(args: clap::Args) -> Result<Server, Error> {
.enable_io() .enable_io()
.enable_time() .enable_time()
.thread_name("conduwuit:worker") .thread_name("conduwuit:worker")
.worker_threads(num_cpus::get_physical()) .worker_threads(num_cpus::get())
.build() .build()
.unwrap(), .unwrap(),