mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-08-29 20:26:42 +08:00
fix: replace nil ctx to context.Background
This commit is contained in:
+2
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user