Skip to content

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

:art: Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685

Daniel9606ef59278a
diff --git a/kernel/util/rhy.go b/kernel/util/rhy.go
index 7997fa6770..bbb37ac928 100644
--- a/kernel/util/rhy.go
+++ b/kernel/util/rhy.go
@@ -60,5 +60,12 @@ func GetRhyResult(force bool) (map[string]interface{}, error) {
}
func RefreshRhyResultJob() {
- GetRhyResult(true)
+ _, err := GetRhyResult(true)
+ if nil != err {
+ // 系统唤醒后可能还没有网络连接,这里等待后再重试
+ go func() {
+ time.Sleep(7 * time.Second)
+ GetRhyResult(true)
+ }()
+ }
}