This commit is contained in:
as2252258@163.com
2021-04-07 02:44:19 +08:00
parent 074d6a05cb
commit f4cbc4b409
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class OnWorkerStart extends Callback
/** @var ServerInotify $inotify */
$inotify = Snowflake::app()->get(ServerInotify::class);
$inotify->getLoader($worker_id);
$inotify->write(sprintf('%03d', $worker_id));
if ($worker_id >= $server->setting['worker_num']) {
$this->onTask($server, $worker_id);