We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3231508 commit b71ef44Copy full SHA for b71ef44
asyncpg/pool.py
@@ -295,7 +295,7 @@ def _deactivate_inactive_connection(self) -> None:
295
296
if self._con is not None:
297
# Only deactivate if doing so respects pool size and demand constraints.
298
- if not self._pool.is_safe_to_close_connection():
+ if not self._pool.safe_to_close_connection():
299
# Still mark this holder as available and keep the connection.
300
# Re-arm the inactivity timer so we can reevaluate later.
301
self._setup_inactive_callback()
0 commit comments