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