From 3b2c0a2654701d00e4e6e422acc3100a46c50e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 7 Sep 2021 14:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Pool/Pool.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/Pool/Pool.php b/core/Pool/Pool.php index 57effa31..7d42cbec 100644 --- a/core/Pool/Pool.php +++ b/core/Pool/Pool.php @@ -122,13 +122,7 @@ class Pool extends Component { $channel = $this->getChannel($name); if (!$channel->isEmpty()) { - Coroutine::defer(function () { - echo '111'; - }); - $connection = $this->maxIdleQuantity($channel); - if ($this->checkCanUse($name, $connection)) { - return $connection; - } + return $this->maxIdleQuantity($channel); } return $callback(); }