From 912f62c5a425b090224f74d42bb7912fc3782e2b Mon Sep 17 00:00:00 2001 From: orestonce Date: Tue, 30 Aug 2022 08:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=BA=BF=E7=A8=8B=E6=9C=AA=E5=BC=80?= =?UTF-8?q?=E5=90=AFbug=E4=BF=AE=E5=A4=8D=20https://github.com/orestonce/m?= =?UTF-8?q?3u8d/issues/6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download.go b/download.go index d5eb519..7b00015 100644 --- a/download.go +++ b/download.go @@ -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