改名
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user