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