Skip to content

Commit

Permalink
hoge
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuhitoyokoi committed Dec 31, 2022
1 parent 933bd02 commit e326cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flows.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func flows() string { return `
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.wheretheiss.at/v1/satellites/25544",
"url": "https://kazuhitoyokoi.github.io/ogiri-bus-api/bus.json",
"tls": "",
"persist": false,
"proxy": "",
Expand Down
4 changes: 2 additions & 2 deletions red.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func execute(nodeId string, msg string) {
var currentNodeId = flowItems[i]["id"]
var nodeWires = flowItems[i]["wires"].([]interface{})
if nodeType == "inject" && nodeId == "" {
int repeat, _ = strconv.Atoi(flowItems[i]["repeat"].(string))
var repeat, _ = strconv.Atoi(flowItems[i]["repeat"].(string))
go func() {
ticker := time.NewTicker(time.Second * repeat)
ticker := time.NewTicker(time.Duration(repeat) * time.Second)
defer ticker.Stop()
done := make(chan bool)
go func() {
Expand Down

0 comments on commit e326cd0

Please sign in to comment.