slowjob: allow at least 1 job of every type

This commit is contained in:
Marcel Märtens 2021-03-17 08:26:43 +01:00
parent 084fb647b9
commit 529eae2e9d

View File

@ -151,7 +151,7 @@ impl SlowJobPool {
F: Fn(u64) -> u64,
{
let cnf = Config {
max_local: f(self.internal.global_limit),
max_local: f(self.internal.global_limit).max(1),
spawned_total: Arc::new(AtomicU64::new(0)),
};
let mut lock = self.internal.configs.write().unwrap();