消息持久化

master v1.0.9
杨赟 2 years ago
parent bb73657c33
commit 05c929c24c

@ -108,6 +108,8 @@ func (r *rabbitmq) Publish(exchangeName, msg string, delay ...int64) error {
amqp.Publishing{
ContentType: "text/plain",
Body: []byte(msg),
DeliveryMode: amqp.Persistent,
Timestamp: time.Now(),
Headers: header,
})
}

Loading…
Cancel
Save