From cc1daf9e37e797fd15e5fa12da8041fc39ed6da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 16 Feb 2021 23:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 19495dbd..c30b1880 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -169,7 +169,6 @@ class Connection extends Pool */ private function newClient($config, $coroutineName): PDO|null { - $this->printClients($config['cds'], $coroutineName, true); $connections = $this->createConnect($this->parseConfig($config, $coroutineName), $coroutineName, function ($cds, $username, $password, $charset, $coroutineName) { $link = new PDO($cds, $username, $password, [ PDO::ATTR_EMULATE_PREPARES => false, @@ -195,6 +194,7 @@ class Connection extends Pool Coroutine::sleep(0.003); return $this->getConnection($config, $coroutineName); } + $this->printClients($config['cds'], $coroutineName, true); return $connections; }