go-rabbitmq icon indicating copy to clipboard operation
go-rabbitmq copied to clipboard

Declare queue without consuming messages

Open danikk741 opened this issue 8 months ago • 0 comments

Hello. Thank you for your work. I tried to declare a queue with "x-dead-letter-exchange" argument to my main exchange. The problem is that I need to pass Handler for consumer but I do not want messages to be consumed. Messages must be handled automatically by TTL and "x-dead-letter-exchange" option.

Basically, I just need to declare exchanges, queue and bindings without handling messages from queue. What do you think about making Handler argument optional or making Declare functions public?

danikk741 avatar Oct 27 '23 08:10 danikk741