summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-04-25 11:59:22 +0100
committerDavid Baker <dave@matrix.org>2018-04-25 11:59:22 +0100
commit7fafa838ae17429df150a27308a1f12becb60fb0 (patch)
treea65b8aca2bda7a7523dfedee431aae79295d5a3a
parentAdd 'ex[erimental API' comment (diff)
downloadsynapse-7fafa838ae17429df150a27308a1f12becb60fb0.tar.xz
Comment why the looping call loops
-rw-r--r--synapse/handlers/profile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py

index 8332771c15..7699152cdd 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py
@@ -53,6 +53,9 @@ class ProfileHandler(BaseHandler): if len(self.hs.config.replicate_user_profiles_to) > 0: reactor.callWhenRunning(self._assign_profile_replication_batches) reactor.callWhenRunning(self._replicate_profiles) + # Add a looping call to replicate_profiles: this handles retries + # if the replication is unsuccessful when the user updated their + # profile. self.clock.looping_call( self._replicate_profiles, self.PROFILE_REPLICATE_INTERVAL )