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 {