mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 19:00:15 +01:00
🎨 启动后台任务时延迟 50-200 毫秒
This commit is contained in:
parent
d0e15500df
commit
90c5d5b6b7
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ func StartCron() {
|
|||
}
|
||||
|
||||
func every(interval time.Duration, f func()) {
|
||||
util.RandomSleep(50, 200)
|
||||
for {
|
||||
func() {
|
||||
defer logging.Recover()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue