From 9e30583c8c472a3b77b1cc6799e9e33c40c18562 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sun, 20 Jul 2025 04:51:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20CheckRssJob=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=B8=AD=E7=9A=84=E4=B8=8B=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=94=A4=E9=86=92=E6=97=B6=E9=97=B4=E8=AE=A1=E7=AE=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E9=81=BF=E5=85=8D=E6=95=B4=E6=97=B6=E5=88=BB?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=9A=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/rss/job.go | 3 +++ 1 file changed, 3 insertions(+) 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)) } }