Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tornado: Use Signal.asend.
Anders Kaseorge769e546b68a
diff --git a/.codespellignore b/.codespellignoreindex e3231908b22..49cfed17ef2 100644--- a/.codespellignore+++ b/.codespellignore@@ -28,3 +28,4 @@ couldngesassertInthirdparty+asenddiff --git a/zerver/tornado/handlers.py b/zerver/tornado/handlers.pyindex 5fb27131dd0..ac15054bf88 100644--- a/zerver/tornado/handlers.py+++ b/zerver/tornado/handlers.py@@ -132,10 +132,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler):# Django's WSGIHandler.__call__ before the call to# `get_response()`.set_script_prefix(get_script_name(environ))- await sync_to_async(- lambda: signals.request_started.send(sender=type(self.django_handler)),- thread_sensitive=True,- )()+ await signals.request_started.asend(sender=type(self.django_handler))self._request = WSGIRequest(environ)# We do the import during runtime to avoid cyclic dependency