main: actually multiply triggerInterval by time.Second, not time.Minute

Otherwise, we'd wait a little bit too long ;-)
This commit is contained in:
Florian Klink 2019-12-03 10:58:39 +01:00
parent 4ea1a5a2f0
commit 241ec393ac

View file

@ -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)
}
}()