This commit is contained in:
2021-02-20 12:31:20 +08:00
parent 4ab5ccae8f
commit 6e00909834
+1 -3
View File
@@ -61,10 +61,9 @@ class Redis extends Pool
/** /**
* @param $config * @param $config
* @param $coroutineName * @param $coroutineName
* @return SRedis|null
* @throws Exception * @throws Exception
*/ */
private function newClient($config, $coroutineName): \Redis|null private function newClient($config, $coroutineName)
{ {
$this->printClients($config['host'], $coroutineName, true); $this->printClients($config['host'], $coroutineName, true);
$this->createConnect([$config, $coroutineName], $coroutineName, function ($config, $coroutineName) { $this->createConnect([$config, $coroutineName], $coroutineName, function ($config, $coroutineName) {
@@ -86,7 +85,6 @@ class Redis extends Pool
return $redis; return $redis;
}); });
return $this->get($coroutineName)[1];
} }