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; }