🎨 Change marketplace install package timeout to 2 minutes https://github.com/siyuan-note/siyuan/issues/11106

This commit is contained in:
Daniel 2024-04-21 19:45:04 +08:00
parent 1a62006e1c
commit 2a8d5ee3f8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -554,7 +554,7 @@ func downloadPackage(repoURLHash string, pushProgress bool, systemID string) (da
repoURLHash = strings.TrimPrefix(repoURLHash, "https://github.com/")
u := util.BazaarOSSServer + "/package/" + repoURLHash
buf := &bytes.Buffer{}
resp, err := httpclient.NewBrowserRequest().SetOutput(buf).SetDownloadCallback(func(info req.DownloadInfo) {
resp, err := httpclient.NewCloudFileRequest2m().SetOutput(buf).SetDownloadCallback(func(info req.DownloadInfo) {
if pushProgress {
progress := float32(info.DownloadedSize) / float32(info.Response.ContentLength)
//logging.LogDebugf("downloading bazaar package [%f]", progress)