From c63f7ef50b78de1defbf700726052769448624d0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Mar 2024 11:00:34 -0400 Subject: [PATCH] fix: use DailyJob --- renter/price_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renter/price_tracker.go b/renter/price_tracker.go index 0096045..76bc763 100644 --- a/renter/price_tracker.go +++ b/renter/price_tracker.go @@ -40,7 +40,7 @@ type PriceTracker struct { } func (p PriceTracker) LoadInitialTasks(cron cron.CronService) error { - job := gocron.DurationJob(time.Minute) + job := gocron.DailyJob(1, gocron.NewAtTimes(gocron.NewAtTime(0, 0, 0))) _, err := cron.Scheduler().NewJob( job, gocron.NewTask(p.recordRate),