0
0
Fork 1
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:
Erik Johnston 2018-08-22 10:11:21 +01:00
parent 47b25ba5f3
commit a81f140880

View file

@ -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,
) )