mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
removed deferToThread for ASGI instance constructor
This commit is contained in:
parent
d5611bccb6
commit
49a693afd3
|
@ -183,7 +183,7 @@ class Server(object):
|
||||||
assert "application_instance" not in self.connections[protocol]
|
assert "application_instance" not in self.connections[protocol]
|
||||||
# Make an instance of the application
|
# Make an instance of the application
|
||||||
input_queue = asyncio.Queue()
|
input_queue = asyncio.Queue()
|
||||||
application_instance = yield deferToThread(self.application, scope=scope)
|
application_instance = self.application(scope=scope)
|
||||||
# Run it, and stash the future for later checking
|
# Run it, and stash the future for later checking
|
||||||
if protocol not in self.connections:
|
if protocol not in self.connections:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user