mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
slowjob: allow at least 1 job of every type
This commit is contained in:
parent
084fb647b9
commit
529eae2e9d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user