An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Remove unused param
Liang Ding8d26445f7296
diff --git a/kernel/api/sync.go b/kernel/api/sync.goindex 88f70b1048..5facf79985 100644--- a/kernel/api/sync.go+++ b/kernel/api/sync.go@@ -58,7 +58,7 @@ func performSync(c *gin.Context) {}if 3 != model.Conf.Sync.Mode {- model.SyncData(false, false, true)+ model.SyncData(true)return}diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 38dbc8bcd1..7de936068e 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -450,7 +450,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {if !force {if Conf.Sync.Enabled && 3 != Conf.Sync.Mode &&((IsSubscriber() && conf.ProviderSiYuan == Conf.Sync.Provider) || conf.ProviderSiYuan != Conf.Sync.Provider) {- syncData(false, true, false)+ syncData(true, false)if 0 != ExitSyncSucc {exitCode = 1returndiff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 94afe9ba53..fe7a9f677f 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -126,7 +126,7 @@ func SyncDataJob() {return}- SyncData(false, false, false)+ SyncData(false)}func BootSyncData() {@@ -170,19 +170,19 @@ func BootSyncData() {return}-func SyncData(boot, exit, byHand bool) {- syncData(boot, exit, byHand)+func SyncData(byHand bool) {+ syncData(false, byHand)}-func syncData(boot, exit, byHand bool) {+func syncData(exit, byHand bool) {defer logging.Recover()- if !checkSync(boot, exit, byHand) {+ if !checkSync(false, exit, byHand) {return}util.BroadcastByType("main", "syncing", 0, Conf.Language(81), nil)- if !isProviderOnline() { // 这个操作比较耗时,所以要先推送 syncing 事件后再判断网络,这样才能给用户更即时的反馈+ if !exit && !isProviderOnline() { // 这个操作比较耗时,所以要先推送 syncing 事件后再判断网络,这样才能给用户更即时的反馈util.BroadcastByType("main", "syncing", 2, Conf.Language(28), nil)return}@@ -190,11 +190,6 @@ func syncData(boot, exit, byHand bool) {syncLock.Lock()defer syncLock.Unlock()- if boot {- util.IncBootProgress(3, "Syncing data from the cloud...")- BootSyncSucc = 0- logging.LogInfof("sync before boot")- }if exit {ExitSyncSucc = 0logging.LogInfof("sync before exit")