summary refs log tree commit diff
path: root/synapse/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r--synapse/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py

index 4a9bbc4d57..f5a6bfce1a 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py
@@ -52,6 +52,10 @@ if strtobool(os.environ.get("SYNAPSE_ASYNC_IO_REACTOR", "0")): import asyncio + import uvloop + + asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) + from twisted.internet import asyncioreactor asyncioreactor.install(asyncio.get_event_loop())