From c9cfe4e0fa5341f0b7558b3b89ab2f6d1e183ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 11:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnWorkerStart.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 2e846e16..167978d3 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -40,11 +40,6 @@ class OnWorkerStart extends Callback annotation()->read(APP_PATH . 'app', 'App'); $this->debug(sprintf('scan app dir use time %s', microtime(true) - $start)); - $config = sweep(APP_PATH . '/config'); - foreach ($config as $key => $value) { - Config::set($key, $value); - } - if ($worker_id >= $server->setting['worker_num']) { $this->onTask($server, $worker_id); } else {