mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
♻️ 简化数据同步计划任务实现 Fix https://github.com/siyuan-note/siyuan/issues/5329
This commit is contained in:
parent
6aab504b7b
commit
58dd24564c
1 changed files with 1 additions and 2 deletions
|
|
@ -320,8 +320,7 @@ func syncRepo(byHand bool) {
|
|||
return
|
||||
}
|
||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(149)+" [%s]", elapsed.Seconds(), latest.ID[:7]))
|
||||
if 1 > len(mergeUpserts) && 1 > len(mergeRemoves) {
|
||||
// 没有数据变更,直接返回
|
||||
if 1 > len(mergeUpserts) && 1 > len(mergeRemoves) { // 没有数据变更
|
||||
syncSameCount++
|
||||
if 10 < syncSameCount {
|
||||
syncSameCount = 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue