add dynamic send timeout

This commit is contained in:
Timothy Pogue
2022-11-20 14:09:45 -07:00
parent dc79284c54
commit 60a167bdef
2 changed files with 50 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ async def channel_broadcaster(channel: WebSocketChannel, message_stream: Message
Iterate over messages in the message stream and send them
"""
async for message in message_stream:
await channel.send(message)
await channel.send(message, timeout=True)
async def _process_consumer_request(