From 7fc9a5a908006d486adaca4a400b0296429d4da2 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 6 Apr 2023 22:59:04 +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 --- Connection.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Connection.php b/Connection.php index f1d3257..7e484d2 100644 --- a/Connection.php +++ b/Connection.php @@ -190,18 +190,6 @@ class Connection extends Component return $client; } - /** - * @return PDO - * @throws Exception - */ - public function getSlaveClient(): PDO - { - $client = $this->connections->get($this->cds); - if ($client === false) { - throw new Exception('waite db client timeout.'); - } - return $client; - } /** * @return $this