Sleep for one second in recordNewDaily task
parent
0523737f0d
commit
136aac6614
|
@ -52,6 +52,8 @@ func Init() error {
|
||||||
log.Printf("Daily Run Seed: %s", Seed())
|
log.Printf("Daily Run Seed: %s", Seed())
|
||||||
|
|
||||||
scheduler.AddFunc("@daily", func() {
|
scheduler.AddFunc("@daily", func() {
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
err := recordNewDaily()
|
err := recordNewDaily()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error while recording new daily: %s", err)
|
log.Printf("error while recording new daily: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue