feat: set custom runers and queue length

This commit is contained in:
realaravinth
2022-08-09 16:30:04 +05:30
parent 21825582e5
commit 8c9587ad65
3 changed files with 10 additions and 2 deletions

View File

@@ -116,11 +116,17 @@ impl SystemGroup {
.build()
.unwrap();
let runners = if let Some(runners) = s.captcha.runners {
runners
} else {
num_cpus::get_physical()
};
SystemBuilder::default()
.pow(pow)
.cache(c)
.master(m)
.runners(num_cpus::get_physical())
.runners(runners)
.queue_length(s.captcha.queue_length)
.build()
}