This commit is contained in:
as2252258@163.com
2021-04-09 02:20:25 +08:00
parent f17bbccacf
commit 88ddfe11ce
+3 -3
View File
@@ -52,10 +52,10 @@ class OnWorkerStart extends Callback
} else { } else {
$start = microtime(true); $start = microtime(true);
$annotation->runtime($workerDir = directory('app/Http')); $annotation->runtime(CONTROLLER_PATH);
$this->error('use time ' . (microtime(true) - $start)); $this->error('use time ' . (microtime(true) - $start));
Coroutine\go(function () use ($annotation, $workerDir) { Coroutine\go(function () use ($annotation) {
$annotation->runtime(directory('app'), $workerDir); $annotation->runtime(APP_PATH, CONTROLLER_PATH);
}); });
$this->onWorker($server, $worker_id); $this->onWorker($server, $worker_id);