mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Comment why the looping call loops
This commit is contained in:
parent
de341bec1b
commit
7fafa838ae
@ -53,6 +53,9 @@ class ProfileHandler(BaseHandler):
|
|||||||
if len(self.hs.config.replicate_user_profiles_to) > 0:
|
if len(self.hs.config.replicate_user_profiles_to) > 0:
|
||||||
reactor.callWhenRunning(self._assign_profile_replication_batches)
|
reactor.callWhenRunning(self._assign_profile_replication_batches)
|
||||||
reactor.callWhenRunning(self._replicate_profiles)
|
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.clock.looping_call(
|
||||||
self._replicate_profiles, self.PROFILE_REPLICATE_INTERVAL
|
self._replicate_profiles, self.PROFILE_REPLICATE_INTERVAL
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user