From d0c62e1abd9d2014ba71a9c9cbde94ef496098a9 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Thu, 17 Jul 2025 19:15:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=20CheckRssJob=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=BB=A5=E6=AF=8F5=E5=88=86=E9=92=9F?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E4=B8=80=E6=AC=A1=20RSS=20=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/rss/job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/rss/job.go b/handler/rss/job.go index 37d9aab..656f2e8 100644 --- a/handler/rss/job.go +++ b/handler/rss/job.go @@ -26,10 +26,10 @@ func CheckRssJob() { //每个整5分钟执行一次 for { now := time.Now() - if now.Minute()%30 == 0 { + if now.Minute()%5 == 0 { go CheckNewRss() } - nextAwake := 30 - now.Minute()%30 + nextAwake := 5 - now.Minute()%5 time.Sleep(time.Minute * time.Duration(nextAwake)) } }