forked from TrueCloudLab/frostfs-node
[#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:
parent
3dbff0a478
commit
e8d340287f
10 changed files with 66 additions and 58 deletions
|
@ -5,9 +5,6 @@ import (
|
|||
)
|
||||
|
||||
// PushTask adds a task to the queue for processing.
|
||||
//
|
||||
// Returns error if task was not added to the queue.
|
||||
func (m *Manager) PushTask(t *audit.Task) error {
|
||||
func (m *Manager) PushTask(t *audit.Task) {
|
||||
m.ch <- t
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue