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); } }