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