This commit is contained in:
2021-08-16 18:43:37 +08:00
parent cb9e7e8775
commit 1a89c6c8be
3 changed files with 216 additions and 89 deletions
-3
View File
@@ -27,8 +27,6 @@ class Pool extends Component
public int $max = 60;
private array $_times = [];
use Alias;
@@ -110,7 +108,6 @@ class Pool extends Component
if (Coroutine::getCid() === -1) {
return $callback();
}
$this->_times[$name] = time();
$channel = $this->getChannel($name);
if (!$channel->isEmpty()) {
$connection = $channel->pop();