summary refs log tree commit diff
path: root/synapse/app/synctl.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 16:09:40 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 16:09:40 +0100
commitb136d7ff8ff2017148bd0ee52d7065c304b0ef0f (patch)
tree9cfd9af91b170993385b2460392adc563731270e /synapse/app/synctl.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentMerge pull request #3581 from matrix-org/erikj/fixup_stateless (diff)
downloadsynapse-b136d7ff8ff2017148bd0ee52d7065c304b0ef0f.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/app/synctl.py')
-rwxr-xr-xsynapse/app/synctl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py

index 74093004c2..356e5cb6a7 100755 --- a/synapse/app/synctl.py +++ b/synapse/app/synctl.py
@@ -25,6 +25,8 @@ import subprocess import sys import time +from six import iteritems + import yaml SYNAPSE = [sys.executable, "-B", "-m", "synapse.app.homeserver"] @@ -173,7 +175,7 @@ def main(): os.environ["SYNAPSE_CACHE_FACTOR"] = str(cache_factor) cache_factors = config.get("synctl_cache_factors", {}) - for cache_name, factor in cache_factors.iteritems(): + for cache_name, factor in iteritems(cache_factors): os.environ["SYNAPSE_CACHE_FACTOR_" + cache_name.upper()] = str(factor) worker_configfiles = []