This commit is contained in:
2021-04-27 15:20:53 +08:00
parent dff9b4f1b2
commit 061dafef3f
-5
View File
@@ -171,12 +171,7 @@ abstract class Pool extends Component
if ($this->_items[$name]->length() < 1) {
return $this->createByCallback($name, $callback);
}
$time = microtime(true);
$connection = $this->_items[$name]->pop(0.01);
if (microtime(true) - $time >= 0.007) {
$this->warning('Worker #' . env('worker') . ' get client use time ' . (microtime(true) - $time));
}
if (!$this->checkCanUse($name, $connection)) {
return $this->createClient($name, $callback);
} else {