This commit is contained in:
as2252258@163.com
2021-03-28 17:00:37 +08:00
parent 33b55b57f2
commit 64b247ecbd
-16
View File
@@ -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