1
0
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:
R4SAS 2022-08-28 19:32:52 +00:00
parent 55460e36ee
commit 7094ee6b2a
2 changed files with 3 additions and 1 deletions

View File

@ -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 = [];

View File

@ -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
];