Skip to content

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

:art: Error notification pops up only once after auto sync fails https://github.com/siyuan-note/siyuan/issues/8096

Liang Ding98e7c29b3790
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index d514acd5af..bb460d8238 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -578,12 +578,13 @@ func isProviderOnline(byHand bool) (ret bool) {
}
if ret = util.IsOnline(checkURL, skipTlsVerify); !ret {
- if !byHand {
- autoSyncErrCount++
- }
if 1 > autoSyncErrCount || byHand {
util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000)
}
+ if !byHand {
+ planSyncAfter(30 * time.Second)
+ autoSyncErrCount++
+ }
}
return
}