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 c3133c0 commit ae325baCopy full SHA for ae325ba
asyncpg/connect_utils.py
@@ -917,9 +917,9 @@ def _accept_read_only(should_be_read_only: bool):
917
"""
918
async def can_be_used(connection):
919
settings = connection.get_settings()
920
- is_read_only = getattr(settings, 'default_transaction_read_only', 'off')
+ is_readonly = getattr(settings, 'default_transaction_read_only', 'off')
921
922
- if should_be_read_only and is_read_only == "on":
+ if should_be_read_only and is_readonly == "on":
923
return True
924
return await _accept_in_hot_standby(should_be_read_only)(connection)
925
return can_be_used
0 commit comments