This commit is contained in:
as2252258@163.com
2021-02-28 17:20:59 +08:00
parent fae8eb73a1
commit 5797d87068
2 changed files with 14 additions and 1 deletions
+2
View File
@@ -35,6 +35,8 @@ class OnWorkerStart extends Callback
public function onHandler(Server $server, int $worker_id): void
{
Coroutine::set(['enable_deadlock_check' => false]);
Snowflake::app()->stateInit();
if ($worker_id >= $server->setting['worker_num']) {
$this->onTask($server, $worker_id);
} else {