From 98b4ca0918f364a074304dbd59186972639511b28dac1baae992ff9c199fd655 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 14 Aug 2024 18:16:55 +0200 Subject: [PATCH] . --- gitea-events-rabbitmq-publisher/rabbitmq.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gitea-events-rabbitmq-publisher/rabbitmq.go b/gitea-events-rabbitmq-publisher/rabbitmq.go index 924df47..8b14537 100644 --- a/gitea-events-rabbitmq-publisher/rabbitmq.go +++ b/gitea-events-rabbitmq-publisher/rabbitmq.go @@ -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 {