frostfs-node/pkg/services/audit/taskmanager/push.go

14 lines
280 B
Go
Raw Permalink Normal View History

package audittask
import (
"git.frostfs.info/TrueCloudLab/frostfs-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
}