1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web-backend-go/ synced 2025-03-30 00:00:12 +01:00

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