Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
f4bcc49f
Commit
f4bcc49f
authored
Jan 18, 2021
by
Sonja Happ
Browse files
AMQP: next try to make access to headers work
parent
9e235235
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
routes/infrastructure-component/ic_amqpclient.go
View file @
f4bcc49f
...
...
@@ -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"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment