From d041c0464b91d25fcda1f49c14c209d21177b977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 16 Feb 2021 23:30:42 +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/Pool/Connection.php | 2 +- System/Pool/Redis.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index c20db418..19495dbd 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -193,7 +193,7 @@ class Connection extends Pool }); if ($connections === false) { Coroutine::sleep(0.003); - return $this->newClient($config, $coroutineName); + return $this->getConnection($config, $coroutineName); } return $connections; } diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index 239183a2..8a12ae4b 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -90,7 +90,7 @@ class Redis extends Pool }); if ($client === false) { Coroutine::sleep(0.003); - return $this->newClient($config, $coroutineName); + return $this->getConnection($config, $coroutineName); } $this->printClients($config['host'], $coroutineName, true); return $client;