From 0d369c7c7966b78e2b3678a6a593cf127a096ced Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:26:53 +0800 Subject: [PATCH] fix: remove unnecessary context setting in processPendingTask --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 167dfd7..1b88faf 100644 --- a/core/core.go +++ b/core/core.go @@ -29,7 +29,7 @@ func processPendingTask(task types.Task) error { return err } - _, err = common.ReqClient.R().SetContext(task.Ctx).SetOutputFile(task.FileName).SetDownloadCallbackWithInterval(func(info req.DownloadInfo) { + _, err = common.ReqClient.R().SetOutputFile(task.FileName).SetDownloadCallbackWithInterval(func(info req.DownloadInfo) { if info.Response == nil || info.Response.Response == nil || info.Response.Response.StatusCode != 200 { return }