From 58dd24564cfcf96fb226b2a8b2dc318c096a102c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 2 Jul 2022 19:37:58 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E7=AE=80=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AD=A5=E8=AE=A1=E5=88=92=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=20Fix=20https://github.com/siyuan-note/siyua?= =?UTF-8?q?n/issues/5329?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/repository.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 6e48e3232..04fb92ce3 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -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