This commit is contained in:
2021-09-07 14:48:18 +08:00
parent 72578e46b5
commit 0c631c5ea8
+3
View File
@@ -122,6 +122,9 @@ class Pool extends Component
{ {
$channel = $this->getChannel($name); $channel = $this->getChannel($name);
if (!$channel->isEmpty()) { if (!$channel->isEmpty()) {
Coroutine::defer(function () {
echo '111';
});
$connection = $this->maxIdleQuantity($channel); $connection = $this->maxIdleQuantity($channel);
if ($this->checkCanUse($name, $connection)) { if ($this->checkCanUse($name, $connection)) {
return $connection; return $connection;