From 8f1d367484f2ef47a163ca62ecfb5d274c341d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 31 Mar 2023 10:30:39 +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 --- kiri-engine/Pool/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index 7623b6bd..5784b9da 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -100,6 +100,8 @@ class Connection extends Component if (!$this->pool->hasChannel($name)) { $this->pool->initConnections($name, $config['pool']['max']); } + + return $this->pool->get($name, $this->generate($config)); if (!Context::hasContext($name)) { return Context::setContext($name, $this->pool->get($name, $this->generate($config))); } else {