-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This method is called when creating a new consumer
Why don't we check the name of the new consumer with the old one? With this approach, you can't create multiple consumers for one queue
func (a *amqpConnection) registerConsumer(consumer MessageConsumer) error {
for _, channel := range a.channels {
// maybe check channel.consumer.Name != consumer.Name
if channel.consumer != nil && channel.consumer.Queue == consumer.Queue {
err := errConsumerAlreadyExists
a.logger.Error(err, "Could not register consumer", logField{Key: "consumer", Value: consumer.Name})
return err
}
}
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request