An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 桌面端自动更新安装包不进行并发下载 Fix https://github.com/siyuan-note/siyuan/issues/6175
Liang Dinge35d9eb84b24
diff --git a/kernel/model/updater.go b/kernel/model/updater.goindex a94c083b9c..0ba434d089 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -156,8 +156,10 @@ func downloadInstallPkg(pkgURL, checksum string) {logging.LogInfof("downloading install package [%s]", pkgURL)msgId := util.PushMsg(Conf.Language(103), 60*1000*10)client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(10 * time.Minute)- err = client.NewParallelDownload(pkgURL).SetConcurrency(8).SetSegmentSize(1024 * 1024 * 2).- SetOutputFile(savePath).Do()+ callback := func(info req.DownloadInfo) {+ //logging.LogDebugf("downloading install package [%s %.2f%%]", pkgURL, float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)+ }+ _, err = client.R().SetOutputFile(savePath).SetDownloadCallback(callback).Get(pkgURL)if nil != err {logging.LogErrorf("download install package failed: %s", err)util.PushUpdateMsg(msgId, Conf.Language(104), 7000)