add a check that at least 1 thread works for slowJobPool and for every configuration

This commit is contained in:
Marcel Märtens 2021-03-17 14:36:58 +01:00
parent 6e6878ca9e
commit 49e5fe96df

View File

@ -66,7 +66,7 @@ impl InternalSlowJobPool {
running_jobs: RwLock::new(HashMap::new()),
configs: RwLock::new(HashMap::new()),
global_running_jobs: Arc::new(AtomicU64::new(0)),
global_limit,
global_limit: global_limit.max(1),
threadpool,
}
}