From 75d83b0a3effc8762d855db2bec8db0d2effd824 Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Mon, 17 Aug 2026 19:12:23 +0800 Subject: [PATCH] fix: replace nil ctx to context.Background --- api/progress.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/progress.go b/api/progress.go index e6e5a52..6bc857e 100644 --- a/api/progress.go +++ b/api/progress.go @@ -1,6 +1,7 @@ package api import ( + "context" "sync" "time" @@ -195,6 +196,6 @@ func (t *TaskProgressInfo) Emit(e taskevent.Event) { if notify { payload := CreateWebhookPayload(t.TaskID, t.Type, t.Status, t.Storage, t.Path, e.Err) - SendWebhook(nil, payload) + SendWebhook(context.Background(), payload) } }