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

This commit is contained in:
Daniel 2025-04-23 10:34:30 +08:00
parent 9c970b1bdc
commit 85934230ac
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 7 additions and 3 deletions

View file

@ -215,7 +215,6 @@ var (
)
func RefreshCheckJob() {
go util.GetRhyResult(true) // 发一次请求进行结果缓存
go refreshSubscriptionExpirationRemind()
go refreshUser()
go refreshAnnouncement()

View file

@ -87,7 +87,7 @@ func AddMicrosoftDefenderExclusion() (err error) {
return
}
func AutoCheckMicrosoftDefender() {
func AutoCheckMicrosoftDefenderJob() {
time.Sleep(7 * time.Second)
microsoftDefenderLock.Lock()
defer microsoftDefenderLock.Unlock()