From 251b3bf6c54b4cd5a65e117157967c8206091899 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 8 Apr 2021 00:42:18 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index b7752f01..3ef1a56c 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -46,15 +46,14 @@ class OnWorkerStart extends Callback $annotation->setLoader($runtime); if ($worker_id >= $server->setting['worker_num']) { - $annotation->runtime(MODEL_PATH); + $annotation->instanceDirectoryFiles(MODEL_PATH); $this->onTask($server, $worker_id); } else { $start = microtime(true); - $annotation->runtime(CONTROLLER_PATH); - $annotation->runtime(APP_PATH, CONTROLLER_PATH); + $annotation->instanceDirectoryFiles(APP_PATH); $this->error('use time ' . (microtime(true) - $start));