diff --git a/pkg/services/object/head/local.go b/pkg/services/object/head/local.go index 908c3419a..b2d910807 100644 --- a/pkg/services/object/head/local.go +++ b/pkg/services/object/head/local.go @@ -4,16 +4,16 @@ import ( "context" "github.com/nspcc-dev/neofs-node/pkg/core/object" - "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore" + "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/engine" "github.com/pkg/errors" ) type localHeader struct { - storage *localstore.Storage + storage *engine.StorageEngine } func (h *localHeader) head(ctx context.Context, prm *Prm, handler func(*object.Object)) error { - head, err := h.storage.Head(prm.addr) + head, err := engine.Head(h.storage, prm.addr) if err != nil { return errors.Wrapf(err, "(%T) could not get header from local storage", h) } diff --git a/pkg/services/object/head/service.go b/pkg/services/object/head/service.go index e0f0bab57..fc4a45c33 100644 --- a/pkg/services/object/head/service.go +++ b/pkg/services/object/head/service.go @@ -7,7 +7,7 @@ import ( objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object" "github.com/nspcc-dev/neofs-node/pkg/core/container" "github.com/nspcc-dev/neofs-node/pkg/core/netmap" - "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore" + "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/engine" "github.com/nspcc-dev/neofs-node/pkg/network" "github.com/nspcc-dev/neofs-node/pkg/network/cache" objutil "github.com/nspcc-dev/neofs-node/pkg/services/object/util" @@ -106,7 +106,7 @@ func WithKeyStorage(v *objutil.KeyStorage) Option { } } -func WithLocalStorage(v *localstore.Storage) Option { +func WithLocalStorage(v *engine.StorageEngine) Option { return func(c *cfg) { c.localHeader.storage = v }