Skip to content

Commit b71ef44

Browse files
committed
chore: fixing typo in method name
1 parent 3231508 commit b71ef44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _deactivate_inactive_connection(self) -> None:
295295

296296
if self._con is not None:
297297
# Only deactivate if doing so respects pool size and demand constraints.
298-
if not self._pool.is_safe_to_close_connection():
298+
if not self._pool.safe_to_close_connection():
299299
# Still mark this holder as available and keep the connection.
300300
# Re-arm the inactivity timer so we can reevaluate later.
301301
self._setup_inactive_callback()

0 commit comments

Comments
 (0)