This commit is contained in:
2020-09-18 21:17:44 +08:00
parent 6e6c9af887
commit 8b450ef1f0
11 changed files with 6 additions and 41 deletions
-3
View File
@@ -54,9 +54,6 @@ class OnWorkerStart extends Callback
try {
$this->debug(sprintf('Worker #%d is start.....', $worker_id));
$event = Snowflake::app()->event;
if (!$event->exists(Event::SERVER_WORKER_START)) {
return;
}
$event->trigger(Event::SERVER_WORKER_START, [$worker_id]);
} catch (\Throwable $exception) {
write($exception->getMessage(), 'worker');