main: actually multiply triggerInterval by time.Second, not time.Minute
Otherwise, we'd wait a little bit too long ;-)
This commit is contained in:
parent
4ea1a5a2f0
commit
241ec393ac
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -112,7 +112,7 @@ func main() {
|
|||
// ticker
|
||||
go func() {
|
||||
for {
|
||||
time.Sleep(time.Duration(triggerInterval) * time.Minute)
|
||||
time.Sleep(time.Duration(triggerInterval) * time.Second)
|
||||
runner.Trigger(fetchOnly)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue