Skip to content

Commit

Permalink
fix nconns
Browse files Browse the repository at this point in the history
  • Loading branch information
kalombos committed Oct 11, 2024
1 parent cc08a31 commit 5aeb281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee_async/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def create(self) -> None:

def has_acquired_connections(self) -> bool:
if self.pool is not None:
return bool(self.pool.nconns - self.pool._num_pool > 0)
return bool(self.pool._nconns - self.pool._num_pool > 0)
return False

async def acquire(self) -> ConnectionProtocol:
Expand Down

0 comments on commit 5aeb281

Please sign in to comment.