mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 06:47:24 +08:00
Update webman.php
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ use Workerman\Worker;
|
|||||||
Adapterman::init();
|
Adapterman::init();
|
||||||
|
|
||||||
$http_worker = new Worker('http://127.0.0.1:7010');
|
$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->name = 'AdapterMan';
|
||||||
|
|
||||||
$http_worker->onWorkerStart = static function () {
|
$http_worker->onWorkerStart = static function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user