mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
fix download exceed max concurrency limit
This commit is contained in:
parent
7dfd89c29d
commit
c05148df16
@ -347,6 +347,9 @@ func (f *FileActionTask) downloadFile(ctx context.Context) error {
|
||||
}
|
||||
logger.Verboseln("query new download url: ", newUrl.Url)
|
||||
worker.SetUrl(newUrl.Url)
|
||||
} else if worker.GetStatus().StatusCode() == downloader.StatusCodeDownloadUrlExceedMaxConcurrency {
|
||||
logger.Verboseln("download url exceed max concurrency: ", f.syncItem.PanFile.Path)
|
||||
// 下载遇到限流了,下一次重试
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user