summary refs log tree commit diff
path: root/synapse/app/generic_worker.py
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-11-30 17:52:45 +0100
committerGitHub <noreply@github.com>2021-11-30 16:52:45 +0000
commit42bf0204635213e2c75188b19ee66dc7e7d8a35e (patch)
treed7d04296b0ec8a15e198eae800a84ceb1ee262f5 /synapse/app/generic_worker.py
parentBundle relations of relations into the `/relations` result. (#11284) (diff)
downloadsynapse-42bf0204635213e2c75188b19ee66dc7e7d8a35e.tar.xz
Expose worker & homeserver as entrypoints in `setup.py` (#11449)
Co-authored-by: reivilibre <oliverw@matrix.org>
Diffstat (limited to 'synapse/app/generic_worker.py')
-rw-r--r--synapse/app/generic_worker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py
index b4bed5bf40..e256de2003 100644
--- a/synapse/app/generic_worker.py
+++ b/synapse/app/generic_worker.py
@@ -505,6 +505,10 @@ def start(config_options: List[str]) -> None:
     _base.start_worker_reactor("synapse-generic-worker", config)
 
 
-if __name__ == "__main__":
+def main() -> None:
     with LoggingContext("main"):
         start(sys.argv[1:])
+
+
+if __name__ == "__main__":
+    main()