forked from TrueCloudLab/frostfs-node
[#186] replicator: Use new storage engine for work
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9a4cd01eb8
commit
1b867e53d7
2 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,7 @@ package replicator
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/engine"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/network"
|
||||
putsvc "github.com/nspcc-dev/neofs-node/pkg/services/object/put"
|
||||
"go.uber.org/zap"
|
||||
|
@ -48,7 +49,7 @@ func (p *Replicator) handleTask(ctx context.Context, task *Task) {
|
|||
)
|
||||
}()
|
||||
|
||||
obj, err := p.localStorage.Get(task.addr)
|
||||
obj, err := engine.Get(p.localStorage, task.addr)
|
||||
if err != nil {
|
||||
p.log.Error("could not get object from local storage")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue