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);
} else {
$start = microtime(true);
$annotation->runtime(CONTROLLER_PATH);
$this->error('use time ' . (microtime(true) - $start));
Coroutine\go(function () use ($annotation) {
$annotation->runtime(APP_PATH, CONTROLLER_PATH);
});
$this->onWorker($server, $worker_id);
}
}