Update webman.php

This commit is contained in:
Xboard 2024-04-09 22:52:10 +08:00 committed by GitHub
parent bb708d6084
commit ec63e05575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ use Workerman\Worker;
Adapterman::init();
$http_worker = new Worker('http://127.0.0.1:7010');
$http_worker->count = getenv('WEBMAN_WORKERS') ?? (swoole_cpu_num() ?? 1);
$http_worker->count = getenv('WEBMAN_WORKERS') ?: (swoole_cpu_num() ?: 1);
$http_worker->name = 'AdapterMan';
$http_worker->onWorkerStart = static function () {