From 6e00909834c30f42bfe66b3f8216325ace6a5eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 20 Feb 2021 12:31:20 +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/Redis.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index 9941716c..911a4bbb 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -61,10 +61,9 @@ class Redis extends Pool /** * @param $config * @param $coroutineName - * @return SRedis|null * @throws Exception */ - private function newClient($config, $coroutineName): \Redis|null + private function newClient($config, $coroutineName) { $this->printClients($config['host'], $coroutineName, true); $this->createConnect([$config, $coroutineName], $coroutineName, function ($config, $coroutineName) { @@ -86,7 +85,6 @@ class Redis extends Pool return $redis; }); - return $this->get($coroutineName)[1]; }