Skip to content

Commit

Permalink
Update ConnectionPool.php
Browse files Browse the repository at this point in the history
Fix connection counter
  • Loading branch information
ref0218 committed Jul 7, 2022
1 parent 957eb11 commit e5f8b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ protected function startBalanceTimer(float $interval)

protected function createConnection()
{
$this->connectionCount++;
$connection = $this->connector->connect($this->connectionConfig);
$connection->{static::KEY_LAST_ACTIVE_TIME} = time();
$this->connectionCount++;

return $connection;
}

Expand Down

0 comments on commit e5f8b2d

Please sign in to comment.