forked from TrueCloudLab/frostfs-node
[#1214] *: Use single Object
type in whole project
Remove `Object` and `RawObject` types from `pkg/core/object` package. Use `Object` type from NeoFS SDK Go library everywhere. Avoid using the deprecated elements. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
19ad349b27
commit
7ccd1625af
100 changed files with 847 additions and 965 deletions
|
@ -80,7 +80,7 @@ func (s *Shard) refillMetabase() error {
|
|||
return fmt.Errorf("could not reset metabase: %w", err)
|
||||
}
|
||||
|
||||
return blobstor.IterateObjects(s.blobStor, func(obj *object.Object, blzID *blobovnicza.ID) error {
|
||||
return blobstor.IterateObjects(s.blobStor, func(obj *objectSDK.Object, blzID *blobovnicza.ID) error {
|
||||
if obj.Type() == objectSDK.TypeTombstone {
|
||||
tombstone := objectSDK.NewTombstone()
|
||||
|
||||
|
@ -88,7 +88,7 @@ func (s *Shard) refillMetabase() error {
|
|||
return fmt.Errorf("could not unmarshal tombstone content: %w", err)
|
||||
}
|
||||
|
||||
tombAddr := obj.Address()
|
||||
tombAddr := object.AddressOf(obj)
|
||||
cid := tombAddr.ContainerID()
|
||||
memberIDs := tombstone.Members()
|
||||
tombMembers := make([]*addressSDK.Address, 0, len(memberIDs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue