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
b93598bf
Commit
b93598bf
authored
Oct 13, 2020
by
Sonja Happ
Browse files
AMQP: Improve string pointer handling for uuid
parent
0fc183a7
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
amqp/amqp_endpoints.go
View file @
b93598bf
...
...
@@ -26,6 +26,7 @@ import (
"git.rwth-aachen.de/acs/public/villas/web-backend-go/helper"
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/infrastructure-component"
"github.com/gin-gonic/gin"
"log"
"net/http"
)
...
...
@@ -62,11 +63,13 @@ func sendActionToIC(c *gin.Context) {
}
//now := time.Now()
log
.
Println
(
"AMQP: Will attempt to send the following actions:"
,
actions
)
for
_
,
action
:=
range
actions
{
/*if action.When == 0 {
action.When = float32(now.Unix())
}*/
action
.
UUID
=
new
(
string
)
*
action
.
UUID
=
s
.
UUID
err
=
SendActionAMQP
(
action
)
if
err
!=
nil
{
...
...
Write
Preview
Supports
Markdown
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