From f8a07c30ae977d520a6cd6b2cacb5c3d157019df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 14 Jan 2022 16:03:01 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Connection.php b/Connection.php index df11d04..d53d5cd 100644 --- a/Connection.php +++ b/Connection.php @@ -108,11 +108,11 @@ class Connection extends Component } $name = $connections->name('Mysql:' . $this->cds, true); for ($i = 0; $i < $pool; $i++) { - $pool->push($name, $connections->create($name, $config)); + $pool->push($name, $connections->create($name, $config)()); } $name = $connections->name('Mysql:' . $this->cds, false); for ($i = 0; $i < $pool; $i++) { - $pool->push($name, $connections->create($name, $config)); + $pool->push($name, $connections->create($name, $config)()); } }