mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
⚡ 提升桌面端自动更新安装包下载速度 Fix https://github.com/siyuan-note/siyuan/issues/5997
This commit is contained in:
parent
2f20e64e20
commit
20ab5d9edc
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ func downloadInstallPkg(pkgURL, checksum string) {
|
||||||
|
|
||||||
logging.LogInfof("downloading install package [%s]", pkgURL)
|
logging.LogInfof("downloading install package [%s]", pkgURL)
|
||||||
client := req.C().SetTimeout(60 * time.Minute)
|
client := req.C().SetTimeout(60 * time.Minute)
|
||||||
err := client.NewParallelDownload(pkgURL).SetConcurrency(8).SetSegmentSize(1024 * 1024 * 4).
|
err := client.NewParallelDownload(pkgURL).SetConcurrency(8).SetSegmentSize(1024 * 1024 * 2).
|
||||||
SetOutputFile(savePath).Do()
|
SetOutputFile(savePath).Do()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogErrorf("download install package failed: %s", err)
|
logging.LogErrorf("download install package failed: %s", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue