Skip to content

Commit

Permalink
Merge pull request #12 from fon-MaXX/main
Browse files Browse the repository at this point in the history
concurrent pool usage do not force connection limit overflow
  • Loading branch information
mrVrAlex committed Aug 26, 2022
2 parents 67500bb + fbd6ab4 commit e196f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swoole/PgSQL/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function make() : void
if (! $this->map || ! $this->pool) {
return;
}
if ($this->pool->capacity === $this->capacity()) {
if ($this->pool->capacity <= $this->capacity()) {
return;
}
try {
Expand Down

0 comments on commit e196f02

Please sign in to comment.