Closed OverworkedCriminal closed 1 year ago
Thank you - good job investigating this issue!
@OverworkedCriminal - feel free to open a pull request with your change and, ideally, with a test.
I opened pull request https://github.com/gftea/amqprs/pull/113 (not sure how to link it to this issue) I'll see if i can write test for it
@OverworkedCriminal thank you!
Hi,
I'm trying to detect unexpected consumer cancellations. Based on https://www.rabbitmq.com/consumer-cancel.html ChannelCallback::cancel() seems to be the best for this, but I can't make it work.
I tried doing something like this:
But ChannelCallback::cancel() was not called.
Did I miss some configuration?
Probable cause
I've read here https://www.rabbitmq.com/connections.html#capabilities that this extension (consumer_cancel_notify) needs to be present in client capabilities, otherwise RabbitMQ does not send any notification.
I modified Connection::open() to check if it would help, and it did.
versions: Rust: 1.73 amqprs: 1.5.0