mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 00:11:47 +01:00
Add assert to ensure handler is only run on master
This commit is contained in:
parent
47b25ba5f3
commit
a81f140880
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ class MasterProfileHandler(WorkerProfileHandler):
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
super(MasterProfileHandler, self).__init__(hs)
|
super(MasterProfileHandler, self).__init__(hs)
|
||||||
|
|
||||||
|
assert hs.config.worker_app is None
|
||||||
|
|
||||||
self.clock.looping_call(
|
self.clock.looping_call(
|
||||||
self._start_update_remote_profile_cache, self.PROFILE_UPDATE_MS,
|
self._start_update_remote_profile_cache, self.PROFILE_UPDATE_MS,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue