From aa14ff337681fc6587ca309855ddb5296da2f1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 16 Aug 2023 12:27:03 +0800 Subject: [PATCH] qqq --- Connection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Connection.php b/Connection.php index 5e3fe2d..92befc7 100644 --- a/Connection.php +++ b/Connection.php @@ -135,7 +135,7 @@ class Connection extends Component public function getConnection(): PDO { if (!$this->inTransaction()) { - return $this->checkClientHealth(); + return $this->getNormalClientHealth(); } else { return $this->getTransactionClient(); } @@ -146,7 +146,7 @@ class Connection extends Component * @return PDO * @throws Exception */ - protected function checkClientHealth(): PDO + protected function getNormalClientHealth(): PDO { /** @var PDO $client */ $client = $this->pool()->get($this->cds); @@ -154,7 +154,7 @@ class Connection extends Component return $client; } Waite::sleep(10); - return $this->checkClientHealth(); + return $this->getNormalClientHealth(); }