summary refs log tree commit diff
path: root/synapse/app/synctl.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-07-21 15:47:18 +1000
committerGitHub <noreply@github.com>2018-07-21 15:47:18 +1000
commit3132b89f12f0386558045683ad198f090b0e2c90 (patch)
tree4b4dfe0adf23374fa6922513eef856f484a47a99 /synapse/app/synctl.py
parentMerge pull request #3572 from matrix-org/rav/linearizer_cancellation (diff)
downloadsynapse-3132b89f12f0386558045683ad198f090b0e2c90.tar.xz
Make the rest of the .iterwhatever go away (#3562)
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 68acc15a9a..d658f967ba 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 = []