forked from MirrorHub/synapse
Only start background group attestation renewals on master
This commit is contained in:
parent
8dc1eb6697
commit
837340bdce
1 changed files with 4 additions and 3 deletions
|
@ -132,6 +132,7 @@ 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()
|
||||||
|
|
||||||
|
if not hs.config.worker_app:
|
||||||
self._renew_attestations_loop = self.clock.looping_call(
|
self._renew_attestations_loop = self.clock.looping_call(
|
||||||
self._start_renew_attestations, 30 * 60 * 1000,
|
self._start_renew_attestations, 30 * 60 * 1000,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue