channels_rabbitmq icon indicating copy to clipboard operation
channels_rabbitmq copied to clipboard

`await get_channel_layer().receive()` doesn't connect

Open adamhooper opened this issue 3 years ago • 0 comments

If you call await get_channel_layer().receive() on a newly-instantiated channel layer, it won't connect to RabbitMQ. The connect only happens on send() or group_add().

To fix, make receive() await the connection. (Ignore failed connections?)

adamhooper avatar May 11 '21 17:05 adamhooper