@ -52,6 +52,7 @@ func (r *rabbitmq) Consume(queueName string, autoAck bool, callback func(amqp.De
if err != nil {
return err
}
defer ch.Close()
//消费队列
msgs, err := ch.Consume(
queueName, //队列名称