mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 05:44:59 -04:00
Expose worker & homeserver as entrypoints in setup.py
(#11449)
Co-authored-by: reivilibre <oliverw@matrix.org>
This commit is contained in:
parent
379f2650cf
commit
42bf020463
3 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue