mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685
This commit is contained in:
parent
b35e21587b
commit
9606ef5927
1 changed files with 8 additions and 1 deletions
|
|
@ -60,5 +60,12 @@ func GetRhyResult(force bool) (map[string]interface{}, error) {
|
|||
}
|
||||
|
||||
func RefreshRhyResultJob() {
|
||||
_, err := GetRhyResult(true)
|
||||
if nil != err {
|
||||
// 系统唤醒后可能还没有网络连接,这里等待后再重试
|
||||
go func() {
|
||||
time.Sleep(7 * time.Second)
|
||||
GetRhyResult(true)
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue