1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/state_compressor.py b/synapse/util/state_compressor.py
index f28c638a7a..93236733f7 100644
--- a/synapse/util/state_compressor.py
+++ b/synapse/util/state_compressor.py
@@ -48,7 +48,7 @@ def setup_state_compressor(hs: "HomeServer"):
"""Schedules the state compressor to run regularly"""
# Return if cannot import auto_compressor
- if not state_compressor or not hs.config.workers.run_background_tasks:
+ if not state_compressor or not hs.config.worker.run_background_tasks:
return
# Return if compressor isn't enabled
|