From f4bcc49fbec34cb8ad32874c4bf92b4fbce12b0a Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Mon, 18 Jan 2021 15:47:58 +0100 Subject: [PATCH] AMQP: next try to make access to headers work --- routes/infrastructure-component/ic_amqpclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/infrastructure-component/ic_amqpclient.go b/routes/infrastructure-component/ic_amqpclient.go index 168b0fb..56c9595 100644 --- a/routes/infrastructure-component/ic_amqpclient.go +++ b/routes/infrastructure-component/ic_amqpclient.go @@ -262,7 +262,7 @@ func processMessage(message amqp.Delivery) error { return fmt.Errorf("AMQP: Could not unmarshal message to JSON: %v err: %v", string(message.Body), err) } - payload.Status.UUID = new(string) + //payload.Status.UUID = new(string) headers := amqp.Table(message.Headers) *payload.Status.UUID = fmt.Sprintf("%v", headers["uuid"])