mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
feat: set custom runers and queue length
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user