This commit is contained in:
2023-04-06 22:59:04 +08:00
parent 6fe699413d
commit 7fc9a5a908
-12
View File
@@ -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