This commit is contained in:
2021-03-02 13:59:57 +08:00
parent 5c7e0126a7
commit 92f09ae5fa
2 changed files with 4 additions and 13 deletions
-13
View File
@@ -144,8 +144,6 @@ class Server extends HttpService
return 'ok';
}
$this->enableCoroutine();
return $baseServer->start();
}
@@ -205,17 +203,6 @@ class Server extends HttpService
}
/**
* @param bool $isEnable
*/
private function enableCoroutine($isEnable = true)
{
if ($isEnable === true) {
Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL);
}
}
/**
* @throws ConfigException
* @throws Exception