From 50aa2bd5cd22eb62ec10d4fcb629f774350ea395 Mon Sep 17 00:00:00 2001 From: Muhammad Khatri Date: Mon, 24 Feb 2020 17:36:10 -0600 Subject: [PATCH] perf: explicitly enable async handlers in socketio --- gavel/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gavel/__init__.py b/gavel/__init__.py index 0f11b44..3760463 100644 --- a/gavel/__init__.py +++ b/gavel/__init__.py @@ -86,7 +86,7 @@ def start_app(): SOCKETIO_REDIS_URL = settings.BROKER_URI async_mode="eventlet" -socketio = SocketIO(app, async_mode=async_mode, message_queue=SOCKETIO_REDIS_URL) +socketio = SocketIO(app, async_mode=async_mode, message_queue=SOCKETIO_REDIS_URL, async_handlers=True) import gavel.template_filters # registers template filters