frostfs-node/pkg/services/audit/taskmanager/push.go
Leonard Lyubich 580c9c974a [#255] services/audit: Implement task manager
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-25 16:49:27 +03:00

13 lines
269 B
Go

package audittask
import (
"github.com/nspcc-dev/neofs-node/pkg/services/audit"
)
// 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 {
m.ch <- t
return nil
}