summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-12-04 14:11:19 +0000
committerErik Johnston <erik@matrix.org>2023-12-04 14:11:19 +0000
commitda78e0b436dacd7cfdf7bfc2cff6467c4e7746a2 (patch)
treedf8100b14e0b25fcc5828e168cfce69cab5385e9 /synapse
parentMerge branch 'develop' into erikj/py312_asyncio (diff)
downloadsynapse-da78e0b436dacd7cfdf7bfc2cff6467c4e7746a2.tar.xz
Try using uvloop with asyncio
Diffstat (limited to 'synapse')
-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())