From e457bc62a0185f1c0c6ff466197befbd88953b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 1 Sep 2020 15:54:34 +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 --- system/Processes.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/system/Processes.php b/system/Processes.php index 85c3c3f2..f5bc52d5 100644 --- a/system/Processes.php +++ b/system/Processes.php @@ -30,9 +30,6 @@ class Processes extends Component $application = Snowflake::get(); $server = $application->set(Pool::class, new Pool($this->size(), SWOOLE_IPC_UNIXSOCK)); $server->on('workerStart', function (Pool $pool, int $workerId) use ($application) { - if (is_string($this->processes[$workerId]) && class_exists($this->processes[$workerId])) { - Config::set($this->processes[$workerId], $workerId); - } ServerManager::create($pool, $this->processes[$workerId], $workerId); }); $server->on('workerStop', function (Pool $pool, int $workerId) {