Skip to content

Commit

Permalink
Merge pull request #22 from uio-bmi/feature/cancel_messages
Browse files Browse the repository at this point in the history
Forward all messages from CEGA to local 'files' queue
  • Loading branch information
kjellp authored Feb 8, 2023
2 parents e4510db + 308cc69 commit 9aa7661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ func forwardDeliveryTo(fromCEGAToLEGA bool, channelFrom *amqp.Channel, channelTo
err = publishError(delivery, err)
failOnError(err, "Failed to publish error message")
}
if messageType != nil {
// Forward all messages from CEGA to a local queue handled by the SDA intercept service
if fromCEGAToLEGA {
routingKey = os.Getenv("LEGA_MQ_QUEUE")
} else if messageType != nil {
routingKey = messageType.(string)
}
err = channelTo.Publish(exchange, routingKey, false, false, *publishing)
Expand Down

0 comments on commit 9aa7661

Please sign in to comment.