Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 优化云端同步上传资源占用和耗时 https://github.com/siyuan-note/siyuan/issues/5093

Liang Ding52f1dc210bfa
diff --git a/kernel/model/osssync.go b/kernel/model/osssync.go
index 0c7d847c16..b5273c5a37 100644
--- a/kernel/model/osssync.go
+++ b/kernel/model/osssync.go
@@ -236,6 +236,7 @@ func ossDownload(localDirPath, cloudDirPath string, bootOrExit bool) (fetchedFil
}
if "/"+pathJSON == fetch {
// 已经在前面验证解密的步骤中下载过了,目前位于 temp/sync/pathJSON
+ fetchedFilesCount++
continue
}
@@ -255,7 +256,6 @@ func ossDownload(localDirPath, cloudDirPath string, bootOrExit bool) (fetchedFil
return
}
}
-
if needPushProgress {
util.ClearPushProgress(len(cloudFetches))
util.PushMsg(Conf.Language(106), 1000*60*10)