mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
♻️ 重构定时任务实现 Fix https://github.com/siyuan-note/siyuan/issues/7171
This commit is contained in:
parent
89ed7f2ad9
commit
1c210693a6
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ func StartCron() {
|
||||||
func every(interval time.Duration, f func()) {
|
func every(interval time.Duration, f func()) {
|
||||||
for {
|
for {
|
||||||
func() {
|
func() {
|
||||||
logging.Recover()
|
defer logging.Recover()
|
||||||
f()
|
f()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue