From c05148df16966d71adc578ff10b748c2fd577e79 Mon Sep 17 00:00:00 2001 From: tickstep Date: Fri, 9 Aug 2024 12:57:46 +0800 Subject: [PATCH] fix download exceed max concurrency limit --- internal/syncdrive/file_action_task.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/syncdrive/file_action_task.go b/internal/syncdrive/file_action_task.go index d708c86..f139983 100644 --- a/internal/syncdrive/file_action_task.go +++ b/internal/syncdrive/file_action_task.go @@ -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) + // 下载遇到限流了,下一次重试 } } }