mirror of
https://github.com/PurpleI2P/regi2p.git
synced 2025-02-10 14:54:14 +00:00
make checker threads configurable
This commit is contained in:
parent
55460e36ee
commit
7094ee6b2a
@ -42,7 +42,7 @@ if ($bob->setnick()) {
|
||||
|
||||
/* Start async checker tasks */
|
||||
Loop::run(function () use (&$results, $hosts, $options) {
|
||||
$pool = new DefaultPool(64);
|
||||
$pool = new DefaultPool($options['checkthreads']);
|
||||
|
||||
$coroutines = [];
|
||||
|
||||
|
@ -38,4 +38,6 @@ $options = [
|
||||
'hidedays' => 3, // days before domain will be marked as hidden in period before disabling
|
||||
|
||||
'fullhour' => 8, // make hosts full-check at that hour (0-23). Usage of out-of-range value or at other hours, checker will validate only enabled domains.
|
||||
|
||||
'checkthreads' => 64, // checker threads amount
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user