diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 2a5da9f5..c20b8be6 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -20,8 +20,6 @@ abstract class Pool extends Component protected $max = 60; - private $is_ticker = false; - /** * @param $name * @param false $isMaster @@ -46,9 +44,6 @@ abstract class Pool extends Component */ protected function get($name, $timeout = -1) { - if ($this->is_ticker) { - Coroutine::sleep(1); - } if ($timeout != -1) { $client = $this->_items[$name]->pop($timeout); } else { diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index c5c70627..f5d1ebbd 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -189,7 +189,7 @@ class Connection extends Pool $this->info('client has :' . $this->size($coroutineName)); [$time, $client] = $this->get($coroutineName, -1); - $this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0)); + $this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0) . ':' . $this->max); if ($client instanceof PDO) { return $this->saveClient($coroutineName, $client); }