[#176] localstore: Fix linter's remarks

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-18 15:45:15 +03:00 committed by Alex Vanin
parent f194c840d7
commit 4518357ad7
3 changed files with 4 additions and 7 deletions

View file

@ -4,13 +4,12 @@ import (
"os"
"github.com/nspcc-dev/neofs-api-go/pkg/object"
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
"github.com/pkg/errors"
)
// DeletePrm groups the parameters of Delete operation.
type DeletePrm struct {
addr *objectSDK.Address
addr *object.Address
}
// DeleteRes groups resulting values of Delete operation.
@ -19,7 +18,7 @@ type DeleteRes struct{}
// WithAddress is a Delete option to set the address of the object to delete.
//
// Option is required.
func (p *DeletePrm) WithAddress(addr *objectSDK.Address) *DeletePrm {
func (p *DeletePrm) WithAddress(addr *object.Address) *DeletePrm {
if p != nil {
p.addr = addr
}

View file

@ -2,7 +2,6 @@ package engine
import (
"github.com/nspcc-dev/neofs-api-go/pkg/object"
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard"
"go.uber.org/zap"
)
@ -18,7 +17,7 @@ type SelectRes struct {
}
// WithFilters is a Select option to set the object filters.
func (p *SelectPrm) WithFilters(fs objectSDK.SearchFilters) *SelectPrm {
func (p *SelectPrm) WithFilters(fs object.SearchFilters) *SelectPrm {
if p != nil {
p.filters = fs
}
@ -27,7 +26,7 @@ func (p *SelectPrm) WithFilters(fs objectSDK.SearchFilters) *SelectPrm {
}
// AddressList returns list of addresses of the selected objects.
func (r *SelectRes) AddressList() []*objectSDK.Address {
func (r *SelectRes) AddressList() []*object.Address {
return r.addrList
}

View file

@ -74,7 +74,6 @@ func (s *Shard) Get(prm *GetPrm) (*GetRes, error) {
if prm.ln < 0 {
// try to read from WriteCache
// TODO: implement
res, err := s.blobStor.Get(
new(blobstor.GetPrm).
WithAddress(prm.addr),