feat: add uri to aria2

This commit is contained in:
Noah Hsu
2022-06-21 17:37:02 +08:00
parent 55c4a925ba
commit f6242d46b1
7 changed files with 119 additions and 18 deletions

View File

@ -53,6 +53,9 @@ func (t *Task[K, V]) run() {
}
}()
t.Error = t.Func(t)
if t.Error != nil {
log.Errorf("error [%+v] while run task [%s]", t.Error, t.Name)
}
if errors.Is(t.Ctx.Err(), context.Canceled) {
t.Status = CANCELED
} else if t.Error != nil {