Skip to content
Snippets Groups Projects
Commit 837340bd authored by Erik Johnston's avatar Erik Johnston
Browse files

Only start background group attestation renewals on master

parent 8dc1eb66
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,10 @@ class GroupAttestionRenewer(object): ...@@ -132,9 +132,10 @@ class GroupAttestionRenewer(object):
self.is_mine_id = hs.is_mine_id self.is_mine_id = hs.is_mine_id
self.attestations = hs.get_groups_attestation_signing() self.attestations = hs.get_groups_attestation_signing()
self._renew_attestations_loop = self.clock.looping_call( if not hs.config.worker_app:
self._start_renew_attestations, 30 * 60 * 1000, self._renew_attestations_loop = self.clock.looping_call(
) self._start_renew_attestations, 30 * 60 * 1000,
)
@defer.inlineCallbacks @defer.inlineCallbacks
def on_renew_attestation(self, group_id, user_id, content): def on_renew_attestation(self, group_id, user_id, content):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment