[#1418] meta: Do not use pointers as parameters

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-05-20 19:48:14 +03:00 committed by Pavel Karpy
parent a46f585fb3
commit 6d4d920bad
4 changed files with 3 additions and 4 deletions

View file

@ -61,7 +61,7 @@ func (db *DB) Delete(prm DeletePrm) (*DeleteRes, error) {
storagelog.OpField("metabase DELETE"))
}
}
return new(DeleteRes), err
return nil, err
}
func (db *DB) deleteGroup(tx *bbolt.Tx, addrs []oid.Address) error {

View file

@ -54,7 +54,7 @@ func (p *SelectPrm) WithFilters(fs object.SearchFilters) {
}
// AddressList returns list of addresses of the selected objects.
func (r *SelectRes) AddressList() []oid.Address {
func (r SelectRes) AddressList() []oid.Address {
return r.addrList
}

View file

@ -25,7 +25,7 @@ func (p *IsSmallPrm) WithAddress(addr oid.Address) {
}
// BlobovniczaID returns blobovnicza identifier.
func (r *IsSmallRes) BlobovniczaID() *blobovnicza.ID {
func (r IsSmallRes) BlobovniczaID() *blobovnicza.ID {
return r.id
}

View file

@ -119,7 +119,6 @@ func (s *Shard) ListWithCursor(prm ListWithCursorPrm) (*ListWithCursorRes, error
var metaPrm meta.ListPrm
metaPrm.WithCount(prm.count)
metaPrm.WithCursor(prm.cursor)
res, err := s.metaBase.ListWithCursor(metaPrm)
if err != nil {
return nil, fmt.Errorf("could not get list of objects: %w", err)