AMQP: next try to make access to headers work

This commit is contained in:
Sonja Happ 2021-01-18 15:47:58 +01:00
parent 9e23523598
commit f4bcc49fbe

View file

@ -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"])