streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.87k stars 620 forks source link

Channel publish is not returning error is the exchange/queue doesn't exists #445

Closed bentcoder closed 4 years ago

bentcoder commented 4 years ago

Hi,

Channel publish is not returning error is the queue doesn't exists.

I manually delete the exchange/queue just before this line but channel.Publish() doesn't return error. How do I make sure that if the message is actually delivered into the exchange/queue?

Thanks

bentcoder commented 4 years ago

Solution is described here: http://www.inanzzz.com/index.php/post/0aeg/creating-a-rabbitmq-producer-example-with-golang