diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2021-11-30 17:52:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 16:52:45 +0000 |
commit | 42bf0204635213e2c75188b19ee66dc7e7d8a35e (patch) | |
tree | d7d04296b0ec8a15e198eae800a84ceb1ee262f5 /synapse/app/generic_worker.py | |
parent | Bundle relations of relations into the `/relations` result. (#11284) (diff) | |
download | synapse-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.py | 6 |
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() |