fix: 在 CheckRssJob 函数中添加 2 分钟的抑制时间,以避免频繁调用 CheckNewRss

This commit is contained in:
lixiangwuxian 2025-07-20 23:59:03 +08:00
parent 9e30583c8c
commit 16221eb821

View File

@ -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 {