This commit is contained in:
Bel LaPointe
2022-01-09 22:29:46 -05:00
parent b5c1c13060
commit a5d42fe556
3 changed files with 7 additions and 1 deletions

View File

@@ -22,8 +22,12 @@ func _main() error {
if err := once(); err != nil {
return err
}
if config.Get().Once {
break
}
time.Sleep(config.Get().Interval.Get())
}
return nil
}
func once() error {