🎨 Clean code

This commit is contained in:
Liang Ding 2022-12-29 19:41:47 +08:00
parent 3dd84974e2
commit 28ad679f1f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -308,7 +308,7 @@ func downloadPackage(repoURLHash string, pushProgress bool, systemID string) (da
resp, err := httpclient.NewBrowserRequest().SetOutput(buf).SetDownloadCallback(func(info req.DownloadInfo) {
if pushProgress {
progress := float32(info.DownloadedSize) / float32(info.Response.ContentLength)
logging.LogDebugf("downloading bazaar package [%d]", progress)
//logging.LogDebugf("downloading bazaar package [%f]", progress)
util.PushDownloadProgress(pushID, progress)
}
}).Get(u)