From 88ddfe11cea2845f717f8ffdb2bc68ea2bec3d96 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 9 Apr 2021 02:20:25 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 93ad68ce..000354ed 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -52,10 +52,10 @@ class OnWorkerStart extends Callback } else { $start = microtime(true); - $annotation->runtime($workerDir = directory('app/Http')); + $annotation->runtime(CONTROLLER_PATH); $this->error('use time ' . (microtime(true) - $start)); - Coroutine\go(function () use ($annotation, $workerDir) { - $annotation->runtime(directory('app'), $workerDir); + Coroutine\go(function () use ($annotation) { + $annotation->runtime(APP_PATH, CONTROLLER_PATH); }); $this->onWorker($server, $worker_id);