This commit is contained in:
2021-09-07 15:24:42 +08:00
parent 86b432961e
commit 916ca4b4db
2 changed files with 6 additions and 7 deletions
-2
View File
@@ -13,7 +13,6 @@ use Kiri\Events\EventDispatch;
use Kiri\Exception\ConfigException;
use Kiri\Rpc\RpcProvider;
use Server\Events\OnShutdown;
use Swoole\Runtime;
defined('PID_PATH') or define('PID_PATH', APP_PATH . 'storage/server.pid');
@@ -82,7 +81,6 @@ class Server extends HttpService
foreach ($processes as $process) {
$this->manager->addProcess($process);
}
// Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION);
return $this->manager->getServer()->start();
}