Open cuizhipeng326 opened 4 years ago
After doing some test with RabbitMQ, I came to the conclusion that ·Consume· by a empty queueName will get the access to the last queue bound through the channel. I think ·Consume· should return an error with no specify queueName. Is this a issue left over?
I created two queues with two different queue names and keys in the same channel. I use the Consume function like this:
delivery, err := consumer.channel.Consume("", "", true, false, false, false, nil)
Theconsumer
created two queues(one key is "test" and another key is "#" which is means matching everything), and bound with the sametopic
type exchange. When using another channel to publish some messages with the key oftest
, I only can get one copy of origin messages. I think I can get two copies of origin messages from two queues, because I didn't specify the queue name in Consume function. But I only got one copy of origin messages fromdelivery
. I am confused with this case, which queue actually is being consuming indelivery
?