diff options
author | Erik Johnston <erik@matrix.org> | 2018-08-22 10:11:21 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-08-22 10:11:21 +0100 |
commit | a81f1408807683d212b7bf3c4f5f36df4b0e0d33 (patch) | |
tree | 4079004d9ebd3f44c2c8884772fc2ceae6e80136 /synapse/handlers | |
parent | Remove redundant vars (diff) | |
download | synapse-a81f1408807683d212b7bf3c4f5f36df4b0e0d33.tar.xz |
Add assert to ensure handler is only run on master
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/profile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index ec9cb1f50c..278f131d5e 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -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, ) |