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
|
@ -71,7 +71,7 @@ func (exec *execCtx) initFromChild(id *oidSDK.ID) (prev *oidSDK.ID, children []*
|
|||
return
|
||||
}
|
||||
|
||||
par := child.GetParent()
|
||||
par := child.Parent()
|
||||
if par == nil {
|
||||
exec.status = statusUndefined
|
||||
|
||||
|
@ -115,7 +115,7 @@ func (exec *execCtx) initFromChild(id *oidSDK.ID) (prev *oidSDK.ID, children []*
|
|||
payload = child.Payload()
|
||||
}
|
||||
|
||||
object.NewRawFromObject(exec.collectedObject).SetPayload(payload)
|
||||
exec.collectedObject.SetPayload(payload)
|
||||
|
||||
return child.PreviousID(), child.Children()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue