-
This is my complete RabbitMQ code inside rabbitmq package.I use StartConsumer function for Consume message from rabbitmq with goroutine.
After a while my consumer doesn't working and doesn't receive any message.Also I cannot see any error/issue.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The first thing that comes to the eye is the use on unbuffered channel in: r.rabbitConnCloseError = make(chan *amqp.Error) Without knowledge of how to run this code, since there is no main, I can best guess there is a potential dead-lock in any of the unbuffered channels. You could try to initialise the channels as |
Beta Was this translation helpful? Give feedback.
-
Please see the following repo that contains the code shared above as well as a publishing application: https://github.com/lukebakken/amqp091-go-119 To run it:
@sabuhigr - please answer these questions:
|
Beta Was this translation helpful? Give feedback.
-
Guys thank you for everything! |
Beta Was this translation helpful? Give feedback.
Guys thank you for everything!
It seems nothing happened on RabbitMQ side, its my bad that while receiving msgs from rabbit used a buffered channel and after a while buffered channel is fulls and DB Locks thats why no any reading from the channel.
@lukebakken @Zerpet