mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-31 20:28:31 +00:00
never allow only 1 tokio worker or rocksdb parallelism thread (max compare)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
d172a6883d
commit
9f245281b1
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
.worker_threads(std::cmp::max(2, num_cpus::get()))
|
||||
.build()
|
||||
.unwrap(),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue