forked from TrueCloudLab/frostfs-node
[#235] services/object: Implement new GetRange algorithm
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
91d8e0a4de
commit
1d23483828
37 changed files with 703 additions and 1125 deletions
|
@ -40,10 +40,7 @@ func fullPartFromResponse(r *headsvc.Response) objectV2.GetHeaderPart {
|
|||
hs.SetHeader(obj.GetHeader())
|
||||
hs.SetSignature(obj.GetSignature())
|
||||
|
||||
p := new(objectV2.GetHeaderPartFull)
|
||||
p.SetHeaderWithSignature(hs)
|
||||
|
||||
return p
|
||||
return hs
|
||||
}
|
||||
|
||||
func shortPartFromResponse(r *headsvc.Response) objectV2.GetHeaderPart {
|
||||
|
@ -56,8 +53,5 @@ func shortPartFromResponse(r *headsvc.Response) objectV2.GetHeaderPart {
|
|||
sh.SetVersion(hdr.GetVersion())
|
||||
sh.SetObjectType(hdr.GetObjectType())
|
||||
|
||||
p := new(objectV2.GetHeaderPartShort)
|
||||
p.SetShortHeader(sh)
|
||||
|
||||
return p
|
||||
return sh
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue