2020-12-22 00:26:36 +00:00
|
|
|
package audittask
|
|
|
|
|
|
|
|
import (
|
2023-03-07 13:38:26 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/audit"
|
2020-12-22 00:26:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|