From e57027d69650274f32e524a958b3348115c6353b Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 9 Apr 2021 02:22:21 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 000354ed..a2edd1d5 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -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); } }