.
This commit is contained in:
parent
e9cb3de124
commit
98b4ca0918
@ -85,9 +85,12 @@ func ConnectToExchangeForPublish(host, username, password string) {
|
||||
}
|
||||
|
||||
err = ch.Publish("pubsub", msg.Topic, false, false, rabbitmq.Publishing{
|
||||
ContentType: "application/json",
|
||||
AppId: RabbitForwarderPath,
|
||||
Body: []byte(msg.Body),
|
||||
ContentType: "application/json",
|
||||
AppId: RabbitForwarderPath,
|
||||
Body: []byte(msg.Body),
|
||||
Timestamp: time.Now(),
|
||||
DeliveryMode: 2,
|
||||
ContentEncoding: "application/json",
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user