mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-14 14:01:59 +01:00
Don't start looping call unless enabled
This commit is contained in:
parent
80e14a8546
commit
fffe17b77d
1 changed files with 2 additions and 1 deletions
|
@ -268,7 +268,8 @@ class EventsStore(
|
|||
"_censor_redactions", self._censor_redactions
|
||||
)
|
||||
|
||||
hs.get_clock().looping_call(_censor_redactions, 10 * 60 * 1000)
|
||||
if self.hs.config.redaction_retention_period is not None:
|
||||
hs.get_clock().looping_call(_censor_redactions, 10 * 60 * 1000)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _read_forward_extremities(self):
|
||||
|
|
Loading…
Reference in a new issue