From 93804a751a15b4369e79026edec5381c35c193c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 2 Apr 2023 00:05:19 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index 8cf1865b..4c443b45 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -99,8 +99,9 @@ class Connection extends Component if (!$this->pool->hasChannel($config['cds'])) { $this->pool->initConnections($config['cds'], $config['pool']['max']); } + return $this->pool->get($config['cds'], $this->generate($config)); if (!Context::hasContext($config['cds'])) { - return Context::setContext($config['cds'], $this->pool->get($config['cds'], $this->generate($config))); + return Context::setContext($config['cds'], ); } else { return Context::getContext($config['cds']); }