mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 02:33:51 +01:00
Refactor
This commit is contained in:
parent
7cd34512d8
commit
f68e4cf690
1 changed files with 4 additions and 9 deletions
|
@ -211,21 +211,16 @@ def main():
|
||||||
or worker_config("pid_file")
|
or worker_config("pid_file")
|
||||||
or pidfile
|
or pidfile
|
||||||
)
|
)
|
||||||
workers.append(Worker(
|
worker_cache_factor = worker_config.get("synctl_cache_factor") or cache_factor
|
||||||
"synapse.app.homeserver",
|
|
||||||
worker_configfile,
|
|
||||||
worker_pidfile,
|
|
||||||
worker_config.get("synctl_cache_factor") or cache_factor,
|
|
||||||
))
|
|
||||||
else:
|
else:
|
||||||
worker_pidfile = worker_config["worker_pid_file"]
|
worker_pidfile = worker_config["worker_pid_file"]
|
||||||
worker_daemonize = worker_config["worker_daemonize"]
|
worker_daemonize = worker_config["worker_daemonize"]
|
||||||
assert worker_daemonize, "In config %r: expected '%s' to be True" % (
|
assert worker_daemonize, "In config %r: expected '%s' to be True" % (
|
||||||
worker_configfile, "worker_daemonize")
|
worker_configfile, "worker_daemonize")
|
||||||
worker_cache_factor = worker_config.get("synctl_cache_factor")
|
worker_cache_factor = worker_config.get("synctl_cache_factor")
|
||||||
workers.append(Worker(
|
workers.append(Worker(
|
||||||
worker_app, worker_configfile, worker_pidfile, worker_cache_factor,
|
worker_app, worker_configfile, worker_pidfile, worker_cache_factor,
|
||||||
))
|
))
|
||||||
|
|
||||||
action = options.action
|
action = options.action
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue