diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 882f1b61..573ce488 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -168,14 +168,14 @@ abstract class Pool extends Component if (!Context::inCoroutine()) { return $this->createClient($name, $callback); } - if ($this->_items[$name]->length() > 10) { - $connection = $this->_items[$name]->pop(); - if (!$this->checkCanUse($name, $connection)) { - return $this->createClient($name, $callback); - } else { - return $connection; - } - } +// if ($this->_items[$name]->length() > 10) { +// $connection = $this->_items[$name]->pop(); +// if (!$this->checkCanUse($name, $connection)) { +// return $this->createClient($name, $callback); +// } else { +// return $connection; +// } +// } return $this->createByCallback($name, $callback); }