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
805 stars 128 forks source link

runs consumer reconnection by any rabbit error #62

Closed fortyanov closed 2 years ago

fortyanov commented 2 years ago

I think that may be good idea to run consumer reconnection by any error because there is situations when internet connection breaks and consumer not working anymore. It might be worth adding some field for set up this behavior to the consumer settings fields, but I'm not sure.

wagslane commented 2 years ago

Sorry the only change I see here seems to be unrelated to your comment. For some reason you are changing the docs to point to the wrong path, and you are making the reconnect a static 5 seconds.

fortyanov commented 2 years ago

Ouch I made some more commits for using this project by my own, so there is more commits that needs for merge. I will recreate mr from differ branch.