This commit is contained in:
2021-07-21 15:37:33 +08:00
parent 8093c6ab3b
commit 8c221e9e0e
+3 -1
View File
@@ -74,7 +74,9 @@ class Server extends HttpService
if (!empty($rpcService)) {
$this->rpcListener($rpcService);
}
foreach ($this->process as $process) {
$processes = array_merge($this->process, Config::get('processes', []));
foreach ($processes as $process) {
$this->manager->addProcess($process);
}
Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION);