diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 059f4082..fa409c6b 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -36,9 +36,6 @@ class OnWorkerStart extends Callback putenv('worker=' . $worker_id); $this->set_process_name($server, $worker_id); - - $this->loadDirectory(); - if ($worker_id >= $server->setting['worker_num']) { $this->onTask($server, $worker_id); } else { @@ -47,19 +44,6 @@ class OnWorkerStart extends Callback } - /** - * @throws Exception - */ - private function loadDirectory() - { -// if (env('debug','true') === 'false') { -// return; -// } - $attribute = Snowflake::app()->getAttributes(); - $attribute->read(directory('app'), 'App'); - } - - /** * @param Server $server * @param int $worker_id