This commit is contained in:
2023-03-31 10:29:28 +08:00
parent 518318ddc8
commit a2a1699ef6
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -57,9 +57,6 @@ class OnServerWorker extends \Kiri\Server\Abstracts\Server
*/
public function onWorkerStart(Server $server, int $workerId): void
{
if ($server->setting[Constant::OPTION_ENABLE_COROUTINE] ?? false) {
Runtime::enableCoroutine();
}
$this->dispatch->dispatch(new OnBeforeWorkerStart($workerId));
set_env('environmental_workerId', $workerId);
$this->status->setEnum(StatusEnum::START);