chore: Fix missing parentheses in RequestCancelledMiddleware
This commit is contained in:
parent
b02462f092
commit
fcdaeb3b30
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class RequestCancelledMiddleware(BaseHTTPMiddleware):
|
||||||
async def message_poller(sentinel, handler_task, request):
|
async def message_poller(sentinel, handler_task, request):
|
||||||
nonlocal queue
|
nonlocal queue
|
||||||
while True:
|
while True:
|
||||||
message = await request.receive
|
message = await request.receive()
|
||||||
if message["type"] == "http.disconnect":
|
if message["type"] == "http.disconnect":
|
||||||
handler_task.cancel()
|
handler_task.cancel()
|
||||||
return sentinel # Break the loop
|
return sentinel # Break the loop
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue