forked from TrueCloudLab/frostfs-node
[#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:
parent
2e4a1cb6df
commit
df8a3807fe
4 changed files with 0 additions and 50 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue