From dfbfa701e5abb18fa5fa24c56883d9a72f3f909c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 7 Feb 2023 17:01:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Connection.php b/Connection.php index 4a419b5..0de9248 100644 --- a/Connection.php +++ b/Connection.php @@ -120,11 +120,11 @@ class Connection extends Component if (!empty($this->slaveConfig) && $this->cds != $this->slaveConfig['cds']) { $pool = $this->pool ?? ['max' => 10, 'min' => 1]; - $this->connection->initConnections('Mysql:' . $this->slaveConfig['cds'], $pool); + $this->connection->initConnections('Mysql:' . $this->slaveConfig['cds'], $pool['max']); } else { $pool = $this->slaveConfig['pool'] ?? ['max' => 10, 'min' => 1]; - $this->connection->initConnections('Mysql:' . $this->cds, $pool); + $this->connection->initConnections('Mysql:' . $this->cds, $pool['max']); } }