改名
This commit is contained in:
@@ -168,9 +168,7 @@ abstract class Pool extends Component
|
|||||||
if (!Context::inCoroutine()) {
|
if (!Context::inCoroutine()) {
|
||||||
return $this->createClient($name, $callback);
|
return $this->createClient($name, $callback);
|
||||||
}
|
}
|
||||||
if ($this->_items[$name]->isEmpty()) {
|
if (!$this->_items[$name]->isEmpty()) {
|
||||||
return $this->createByCallback($name, $callback);
|
|
||||||
}
|
|
||||||
$connection = $this->_items[$name]->pop();
|
$connection = $this->_items[$name]->pop();
|
||||||
if (!$this->checkCanUse($name, $connection)) {
|
if (!$this->checkCanUse($name, $connection)) {
|
||||||
return $this->createClient($name, $callback);
|
return $this->createClient($name, $callback);
|
||||||
@@ -178,6 +176,8 @@ abstract class Pool extends Component
|
|||||||
return $connection;
|
return $connection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $this->createByCallback($name, $callback);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user