summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-09-09 13:24:24 +0100
committerErik Johnston <erik@matrix.org>2019-09-09 13:24:24 +0100
commitfffe17b77d06927aaf64fa80be5b765c870a4ef5 (patch)
treee015ece5fa71961c5bcdc38bce9371e515f3c147 /synapse/storage/events.py
parentHandle setting retention period to 0 (diff)
downloadsynapse-fffe17b77d06927aaf64fa80be5b765c870a4ef5.tar.xz
Don't start looping call unless enabled
Diffstat (limited to '')
-rw-r--r--synapse/storage/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py

index 77ba7eb2af..9ef7aefd97 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py
@@ -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):