wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
768 stars 125 forks source link

close channel once the consumer is stopped #95

Closed aaqaishtyaq closed 1 year ago

aaqaishtyaq commented 1 year ago

If a consumer is listening on an Exclusive queue, It won't be stopped because the channel is still in use. Close the channel once the consumer is stopped so that the temporary queue can be cleared by the Rabbitmq Server.

Signed-off-by: Aaqa Ishtyaq aaqa@hackerrank.com