Sleep for one second in recordNewDaily task

fasthttp
maru 2024-04-18 00:46:00 -04:00
parent 0523737f0d
commit 136aac6614
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ func Init() error {
log.Printf("Daily Run Seed: %s", Seed())
scheduler.AddFunc("@daily", func() {
time.Sleep(time.Second)
err := recordNewDaily()
if err != nil {
log.Printf("error while recording new daily: %s", err)