diff --git a/handler/rss/job.go b/handler/rss/job.go index 9513f11..e12a570 100644 --- a/handler/rss/job.go +++ b/handler/rss/job.go @@ -28,6 +28,8 @@ func CheckRssJob() { now := time.Now() if now.Minute()%5 == 0 { go CheckNewRss() + //inhibit 2 minutes + time.Sleep(time.Minute * 2) } nextAwake := 5 - now.Minute()%5 if nextAwake == 0 {