From 8baffa40996bf6ef04ec74979046ab9846ea9150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 5 Sep 2020 03:51:21 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 5349e8c2..ac36f827 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -28,8 +28,7 @@ abstract class Pool extends Component public function initConnections($name, $isMaster = false, $max = 60) { $name = $this->name($name, $isMaster); - if (isset($this->_items[$name]) && - $this->_items[$name] instanceof Channel) { + if (isset($this->_items[$name]) && $this->_items[$name] instanceof Channel) { return; } $this->_items[$name] = new Channel($max); @@ -127,7 +126,7 @@ abstract class Pool extends Component { $this->_items[$name]->push([time(), $client]); unset($client); - $this->debug('release connect.' . $this->size($name)); + $this->debug('release connect.' . $this->max . ':' . $this->size($name)); }