main v1.5.16
orestonce 2022-08-30 08:45:18 +08:00
parent a46b8388c7
commit 912f62c5a4
1 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ func RunDownload(req RunDownload_Req) (resp RunDownload_Resp) {
Proxy: http.ProxyURL(proxyUrlObj),
},
},
speedBytesMap: map[time.Time]int64{},
speedBytesMap: map[time.Time]int64{},
progressBarShow: req.ProgressBarShow,
}
env.ctx, env.cancelFn = context.WithCancel(context.Background())
@ -448,7 +448,7 @@ func (this *downloadEnv) SleepDur(d time.Duration) {
}
func (this *downloadEnv) downloader(tsList []TsInfo, downloadDir string, key string) (err error) {
task := gopool.NewThreadPool(1)
task := gopool.NewThreadPool(8)
tsLen := len(tsList)
downloadCount := 0
var locker sync.Mutex