From 00f934c0d52d454b436db4941c5d707a4a60bc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 13 Feb 2023 14:37:07 +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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index 1de2dfd7..7623b6bd 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -100,7 +100,6 @@ class Connection extends Component if (!$this->pool->hasChannel($name)) { $this->pool->initConnections($name, $config['pool']['max']); } - var_dump(Context::getAllContext()); if (!Context::hasContext($name)) { return Context::setContext($name, $this->pool->get($name, $this->generate($config))); } else { @@ -172,9 +171,6 @@ class Connection extends Component public function addItem(string $name, PDO $PDO): void { $this->pool->push($name, $PDO); - if (Context::inCoroutine()) { - Context::remove($name); - } }