From b1eadf279e7899fad2c58db3862666690fa9156e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 16:40:53 +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/Abstracts/Pool.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 36404c89..56a8f084 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -8,11 +8,8 @@ use Exception; use HttpServer\Http\Context; use JetBrains\PhpStorm\Pure; -use PDO; -use Redis; use Snowflake\Exception\ComponentException; use Snowflake\Exception\ConfigException; -use Snowflake\Pool\Timeout; use Swoole\Coroutine; use Swoole\Coroutine\Channel; use Swoole\Timer; @@ -167,7 +164,7 @@ abstract class Pool extends Component */ public function printClients($cds, $coroutineName, $isBefore = false) { -// $this->warning(($isBefore ? 'before ' : '') . 'create client[address: ' . $cds . ', ' . env('workerId') . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->_create . ']'); + $this->warning(($isBefore ? 'before ' : '') . 'create client[address: ' . $cds . ', ' . env('worker', 0) . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ']'); } @@ -286,8 +283,8 @@ abstract class Pool extends Component unset($client); $this->desc($name); } - $this->_items[$name]->close(); - $this->_items[$name] = null; + $this->_items[$name]->close(); + $this->_items[$name] = null; }