This commit is contained in:
2023-02-07 16:46:13 +08:00
parent a9472ff0a3
commit 4f341594b5
4 changed files with 27 additions and 46 deletions
+1 -3
View File
@@ -96,9 +96,7 @@ class Connection extends Component
*/
public function get(mixed $config, bool $isMaster = false): ?\PDO
{
$minx = Config::get('databases.pool.min', 1);
return $this->pool->get($config['cds'] . ($isMaster ? 'master' : 'slave'), $this->generate($config), $minx);
return $this->pool->get($config['cds'] . ($isMaster ? 'master' : 'slave'), $this->generate($config));
}