From 9ef53cd401759c8b0c548b166d54fbf2234ed6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 11 Sep 2020 01:27:49 +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 | 1 - System/Pool/Redis.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 1689a8cd..526a4399 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -42,7 +42,6 @@ abstract class Pool extends Component */ protected function get($name) { - $this->debug('get connect.' . $this->size($name)); [$timeout, $connection] = $this->_items[$name]->pop(); if (!$this->checkCanUse($name, $timeout, $connection)) { unset($client); diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index 177a900d..1a0d1e72 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -55,6 +55,7 @@ class Redis extends Pool public function getByChannel($coroutineName, $config) { if (!$this->hasItem($coroutineName)) { + $this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName)); return $this->saveClient($coroutineName, $this->createConnect($config)); } [$time, $client] = $this->get($coroutineName);