改名
This commit is contained in:
@@ -42,7 +42,6 @@ abstract class Pool extends Component
|
|||||||
*/
|
*/
|
||||||
protected function get($name)
|
protected function get($name)
|
||||||
{
|
{
|
||||||
$this->debug('get connect.' . $this->size($name));
|
|
||||||
[$timeout, $connection] = $this->_items[$name]->pop();
|
[$timeout, $connection] = $this->_items[$name]->pop();
|
||||||
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
||||||
unset($client);
|
unset($client);
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class Redis extends Pool
|
|||||||
public function getByChannel($coroutineName, $config)
|
public function getByChannel($coroutineName, $config)
|
||||||
{
|
{
|
||||||
if (!$this->hasItem($coroutineName)) {
|
if (!$this->hasItem($coroutineName)) {
|
||||||
|
$this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName));
|
||||||
return $this->saveClient($coroutineName, $this->createConnect($config));
|
return $this->saveClient($coroutineName, $this->createConnect($config));
|
||||||
}
|
}
|
||||||
[$time, $client] = $this->get($coroutineName);
|
[$time, $client] = $this->get($coroutineName);
|
||||||
|
|||||||
Reference in New Issue
Block a user