fix: 修复 CheckRssJob 函数中的下一个唤醒时间计算逻辑,避免整时刻请求多次
This commit is contained in:
parent
180dfb41c7
commit
9e30583c8c
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user