Update amqp-order-handler.go

This commit is contained in:
matst80
2025-11-11 16:00:59 +01:00
parent cc6d48c879
commit 7161c2a8b6

View File

@@ -51,11 +51,12 @@ func (h *AmqpOrderHandler) OrderCompleted(body []byte) error {
defer cancel()
return ch.PublishWithContext(ctx,
"orders", // exchange
"new", // routing key
"", // exchange
"orders", // routing key
false, // mandatory
false, // immediate
amqp.Publishing{
DeliveryMode: amqp.Persistent,
ContentType: "application/json",
Body: body,
})