[#271] service/object: Fill all fields of new short header structure

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-23 12:35:36 +03:00 committed by Alex Vanin
parent af7ae0ec4c
commit 85773c419b

View file

@ -197,6 +197,8 @@ func toShortObjectHeader(hdr *object.Object) objectV2.GetHeaderPart {
sh.SetPayloadLength(hdrV2.GetPayloadLength()) sh.SetPayloadLength(hdrV2.GetPayloadLength())
sh.SetVersion(hdrV2.GetVersion()) sh.SetVersion(hdrV2.GetVersion())
sh.SetObjectType(hdrV2.GetObjectType()) sh.SetObjectType(hdrV2.GetObjectType())
sh.SetHomomorphicHash(hdrV2.GetHomomorphicHash())
sh.SetPayloadHash(hdrV2.GetPayloadHash())
return sh return sh
} }