diff options
author | reivilibre <oliverw@matrix.org> | 2022-06-14 18:41:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 17:41:06 +0000 |
commit | 5b645ae2ad9c3bc84bf95a30a77089b3f5fbc548 (patch) | |
tree | f96f633d24eaec60c30f114e967d382d26245978 /synapse/app/synchrotron.py | |
parent | Fix `destination_is` errors seen in sentry. (#13041) (diff) | |
download | synapse-5b645ae2ad9c3bc84bf95a30a77089b3f5fbc548.tar.xz |
Refactor entry points so that they all have a `main` function. (#13052)
Diffstat (limited to 'synapse/app/synchrotron.py')
-rw-r--r-- | synapse/app/synchrotron.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py index de1bcee0a7..b6aed651ed 100644 --- a/synapse/app/synchrotron.py +++ b/synapse/app/synchrotron.py @@ -17,6 +17,11 @@ import sys from synapse.app.generic_worker import start from synapse.util.logcontext import LoggingContext -if __name__ == "__main__": + +def main() -> None: with LoggingContext("main"): start(sys.argv[1:]) + + +if __name__ == "__main__": + main() |