This commit is contained in:
2021-07-05 15:55:53 +08:00
parent 41ee154c90
commit 1aef68902b
+7 -5
View File
@@ -82,11 +82,13 @@ class ClientsPool extends Component
} else {
$min = Config::get('databases.pool.min', 1);
$length = $this->getChannel($name)->length();
if ($length > $min) {
$this->flush($min);
}
$this->debug("$name -> ($length:$min)");
var_dump(array_keys(static::$_connections));
// $length = $this->getChannel($name)->length();
// if ($length > $min) {
// $this->flush($min);
// }
// $this->debug("$name -> ($length:$min)");
}
}