This commit is contained in:
2021-09-07 14:00:46 +08:00
parent 86880f8b1f
commit b149e6147a
3 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class Server extends HttpService
foreach ($processes as $process) {
$this->manager->addProcess($process);
}
Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION);
// Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION);
return $this->manager->getServer()->start();
}
+2 -3
View File
@@ -77,7 +77,6 @@ class ServerManager
/**
* @throws NotFindClassException
* @throws ReflectionException
* @throws ConfigException
*/
@@ -202,8 +201,8 @@ class ServerManager
/**
* @param $key
* @param $value
* @param string $key
* @param string|int $value
*/
public static function setEnv(string $key, string|int $value): void
{