Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5389 from matrix-org/erikj/renew_attestations_on_…
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
anoadragon453 committed Feb 10, 2020
2 parents 8396268 + 414d2ca commit 9a26972
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/5389.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix exceptions in federation reader worker caused by attempting to renew attestations, which should only happen on master worker.
7 changes: 4 additions & 3 deletions synapse/groups/attestations.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def __init__(self, hs):
self.is_mine_id = hs.is_mine_id
self.attestations = hs.get_groups_attestation_signing()

self._renew_attestations_loop = self.clock.looping_call(
self._start_renew_attestations, 30 * 60 * 1000,
)
if not hs.config.worker_app:
self._renew_attestations_loop = self.clock.looping_call(
self._start_renew_attestations, 30 * 60 * 1000,
)

@defer.inlineCallbacks
def on_renew_attestation(self, group_id, user_id, content):
Expand Down

0 comments on commit 9a26972

Please sign in to comment.