This commit is contained in:
as2252258@163.com
2021-04-09 02:22:21 +08:00
parent 88ddfe11ce
commit e57027d696
-2
View File
@@ -51,13 +51,11 @@ class OnWorkerStart extends Callback
$this->onTask($server, $worker_id); $this->onTask($server, $worker_id);
} else { } else {
$start = microtime(true); $start = microtime(true);
$annotation->runtime(CONTROLLER_PATH); $annotation->runtime(CONTROLLER_PATH);
$this->error('use time ' . (microtime(true) - $start)); $this->error('use time ' . (microtime(true) - $start));
Coroutine\go(function () use ($annotation) { Coroutine\go(function () use ($annotation) {
$annotation->runtime(APP_PATH, CONTROLLER_PATH); $annotation->runtime(APP_PATH, CONTROLLER_PATH);
}); });
$this->onWorker($server, $worker_id); $this->onWorker($server, $worker_id);
} }
} }