[#222] auditsvc: Refactor audit task

Resolve containedctx linter. Cancel task by listen cancel.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-06 11:36:25 +03:00
parent 3dbff0a478
commit e8d340287f
10 changed files with 66 additions and 58 deletions

View file

@ -24,7 +24,7 @@ type (
}
TaskManager interface {
PushTask(*audit.Task) error
PushTask(*audit.Task)
// Must skip all tasks planned for execution and
// return their number.