mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
AMQP: Improve string pointer handling for uuid
This commit is contained in:
parent
0fc183a70b
commit
b93598bf4a
1 changed files with 3 additions and 0 deletions
|
@ -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/helper"
|
||||||
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/infrastructure-component"
|
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/infrastructure-component"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -62,11 +63,13 @@ func sendActionToIC(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//now := time.Now()
|
//now := time.Now()
|
||||||
|
log.Println("AMQP: Will attempt to send the following actions:", actions)
|
||||||
|
|
||||||
for _, action := range actions {
|
for _, action := range actions {
|
||||||
/*if action.When == 0 {
|
/*if action.When == 0 {
|
||||||
action.When = float32(now.Unix())
|
action.When = float32(now.Unix())
|
||||||
}*/
|
}*/
|
||||||
|
action.UUID = new(string)
|
||||||
*action.UUID = s.UUID
|
*action.UUID = s.UUID
|
||||||
err = SendActionAMQP(action)
|
err = SendActionAMQP(action)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue