Skip to content

Commit

Permalink
Remove maxsize arg from Queue constructor in BaseHTTPMiddleware (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
erewok committed Aug 13, 2020
1 parent 9387832 commit f5a08d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/middleware/base.py
Expand Up @@ -27,7 +27,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:

async def call_next(self, request: Request) -> Response:
loop = asyncio.get_event_loop()
queue: "asyncio.Queue[typing.Optional[Message]]" = asyncio.Queue(maxsize=1)
queue: "asyncio.Queue[typing.Optional[Message]]" = asyncio.Queue()

scope = request.scope
receive = request.receive
Expand Down

0 comments on commit f5a08d0

Please sign in to comment.