Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #785 from matrix-org/erikj/cache_factor_synctly
Browse files Browse the repository at this point in the history
Make synctl read a cache factor from config file
  • Loading branch information
erikjohnston committed May 16, 2016
2 parents 2d98c96 + c5c5a74 commit 678c8a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/app/synctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def main():

config = yaml.load(open(configfile))
pidfile = config["pid_file"]
cache_factor = config.get("synctl_cache_factor", None)

if cache_factor:
os.environ["SYNAPSE_CACHE_FACTOR"] = cache_factor

action = sys.argv[1] if sys.argv[1:] else "usage"
if action == "start":
Expand Down

0 comments on commit 678c8a7

Please sign in to comment.