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() defer cancel()
return ch.PublishWithContext(ctx, return ch.PublishWithContext(ctx,
"orders", // exchange "", // exchange
"new", // routing key "orders", // routing key
false, // mandatory false, // mandatory
false, // immediate false, // immediate
amqp.Publishing{ amqp.Publishing{
DeliveryMode: amqp.Persistent,
ContentType: "application/json", ContentType: "application/json",
Body: body, Body: body,
}) })