Skip to content

Commit

Permalink
Actually use readonly session for whois server
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Aug 13, 2020
1 parent 273432a commit 7bec048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irrd/server/whois/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def run(self, keep_running=True) -> None:

try:
self.preloader = Preloader()
self.database_handler = DatabaseHandler()
self.database_handler = DatabaseHandler(readonly=True)
except Exception as e:
logger.error(f'Whois worker failed to initialise preloader or database,'
f'unable to start, traceback follows: {e}', exc_info=e)
Expand Down

0 comments on commit 7bec048

Please sign in to comment.