diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-09-13 13:07:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 13:07:12 -0400 |
commit | 01c88a09cd6e90fa28c1282a56a08e481727ce20 (patch) | |
tree | d5875f6291b512163d2e01da2150dd4d0956aa7d /synapse/storage/databases/main/session.py | |
parent | Fix copy-paste error in the password section of the sample-config. (#10804) (diff) | |
download | synapse-01c88a09cd6e90fa28c1282a56a08e481727ce20.tar.xz |
Use direct references for some configuration variables (#10798)
Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
Diffstat (limited to 'synapse/storage/databases/main/session.py')
-rw-r--r-- | synapse/storage/databases/main/session.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/session.py b/synapse/storage/databases/main/session.py index 172f27d109..5a97120437 100644 --- a/synapse/storage/databases/main/session.py +++ b/synapse/storage/databases/main/session.py @@ -48,7 +48,7 @@ class SessionStore(SQLBaseStore): super().__init__(database, db_conn, hs) # Create a background job for culling expired sessions. - if hs.config.run_background_tasks: + if hs.config.worker.run_background_tasks: self._clock.looping_call(self._delete_expired_sessions, 30 * 60 * 1000) async def create_session( |