改名
This commit is contained in:
@@ -171,12 +171,7 @@ abstract class Pool extends Component
|
|||||||
if ($this->_items[$name]->length() < 1) {
|
if ($this->_items[$name]->length() < 1) {
|
||||||
return $this->createByCallback($name, $callback);
|
return $this->createByCallback($name, $callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
$time = microtime(true);
|
|
||||||
$connection = $this->_items[$name]->pop(0.01);
|
$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)) {
|
if (!$this->checkCanUse($name, $connection)) {
|
||||||
return $this->createClient($name, $callback);
|
return $this->createClient($name, $callback);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user