Skip to content

Commit

Permalink
Sleep for one second in recordNewDaily task
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Apr 18, 2024
1 parent 0523737 commit 136aac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/daily/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 136aac6

Please sign in to comment.