From e77fa1caa618c320125a3c4dbf3ab18a80849824 Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 18 Jul 2018 15:26:15 +0200 Subject: [PATCH] Drop-in replace the event loop with uvloop --- bot/main.py | 3 +++ bot/requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bot/main.py b/bot/main.py index 7e3233f6..bc3c3f19 100644 --- a/bot/main.py +++ b/bot/main.py @@ -1,4 +1,7 @@ import asyncio +import uvloop + +asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) from pluralkit import bot diff --git a/bot/requirements.txt b/bot/requirements.txt index 70260281..4d547193 100644 --- a/bot/requirements.txt +++ b/bot/requirements.txt @@ -2,4 +2,5 @@ aiohttp aioinflux asyncpg discord.py -humanize \ No newline at end of file +humanize +uvloop \ No newline at end of file