Closed baelter closed 1 year ago
I get a compile error when trying to use this branch in the deprecated on_confirm function:
In lib/amqp-client/src/amqp-client/channel.cr:318:83
318 | if _idx = @unconfirmed_publishes.bsearch_index { |confirm_id| confirm_id >= delivery_tag }
Error: undefined local variable or method 'delivery_tag' for AMQP::Client::Channel
Sorted @chadknutson , Thanks for testing :)
Just make sure to squash before merge
Hmm, on_confirm(msgid)
is kind of useful here: https://github.com/cloudamqp/lavinmq/blob/main/src/lavinmq/shovel/shovel.cr#L228-L230 While wait_for_confirms
will cause a big performance hit. Thinking of a way to reintroduce it...
Thinking if basic_publish_confirm(...) { "this block is called on publish confirm" }
is a better API?
Reopened #37