改名
This commit is contained in:
@@ -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];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user