ricbra / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
247 stars 49 forks source link

Consumer Tag #47

Open ne0c0de opened 7 years ago

ne0c0de commented 7 years ago

Hi

I would like to consider about use rabbitmq-cli-consumer as my consumer manager because i have RabbitMQ pool that have 200+ consumers on a single server.

But i need to be able to set a Consumer Tag on RabbitMQ when a consumer connects to it.

I just checked /consumer/consumer.go file and saw that on 38. line the consumer tag was passed as empty string like:

msgs, err := c.Channel.Consume(c.Queue, "", false, false, false, false, nil)

If it's possible to put a consumer tag via config or as a parameter would be perfect.