[#1508] node: Remove unused replicator code

The node does not support asynchronous object replication anymore, so it
does not need to have replicator worker, channel and `AddTask` function.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-06-10 19:49:12 +03:00 committed by LeL
parent 2e4a1cb6df
commit df8a3807fe
4 changed files with 0 additions and 50 deletions

View file

@ -14,17 +14,6 @@ type Task struct {
nodes netmap.Nodes
}
// AddTask pushes replication task to Replicator queue.
//
// If task queue is full, log message is written.
func (p *Replicator) AddTask(t *Task) {
select {
case p.ch <- t:
default:
p.log.Warn("task queue is full")
}
}
// WithCopiesNumber sets number of copies to replicate.
func (t *Task) WithCopiesNumber(v uint32) *Task {
if t != nil {