Fix build

This commit is contained in:
Ken Hibino
2021-06-19 06:21:07 -07:00
parent 403062b556
commit 2d688dbbab
2 changed files with 39 additions and 39 deletions

View File

@@ -98,7 +98,7 @@ func newCancelAllActiveTasksHandlerFunc(inspector *asynq.Inspector) http.Handler
return
}
for _, t := range tasks {
if err := inspector.CancelProcessing(t.ID()); err != nil {
if err := inspector.CancelProcessing(t.ID); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}