This commit is contained in:
2021-07-12 17:45:04 +08:00
parent 25c00ea088
commit 4736478ddf
7 changed files with 321 additions and 689 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ use Throwable;
class Connection extends Component
{
private ?ClientsPool $clientsPool = null;
private ?Pool $clientsPool = null;
/**
@@ -247,10 +247,10 @@ class Connection extends Component
/**
* @return ClientsPool
* @return Pool
* @throws Exception
*/
public function getPool(): ClientsPool
public function getPool(): Pool
{
if (!$this->clientsPool) {
$this->clientsPool = Snowflake::app()->getClientsPool();