diff --git a/handler/rss/job.go b/handler/rss/job.go index 656f2e8..9513f11 100644 --- a/handler/rss/job.go +++ b/handler/rss/job.go @@ -30,6 +30,9 @@ func CheckRssJob() { go CheckNewRss() } nextAwake := 5 - now.Minute()%5 + if nextAwake == 0 { + nextAwake = 5 + } time.Sleep(time.Minute * time.Duration(nextAwake)) } }