forked from MirrorHub/synapse
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):
|
||||
super(MasterProfileHandler, self).__init__(hs)
|
||||
|
||||
assert hs.config.worker_app is None
|
||||
|
||||
self.clock.looping_call(
|
||||
self._start_update_remote_profile_cache, self.PROFILE_UPDATE_MS,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue