[#225] Do not use wrappers on oneof object.HeadResponse types
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
6db6b569e0
commit
28aad71860
7 changed files with 35 additions and 162 deletions
|
@ -161,11 +161,8 @@ func testHeadResponse() *object.HeadResponse {
|
|||
shortHdr := new(object.ShortHeader)
|
||||
shortHdr.SetCreationEpoch(100)
|
||||
|
||||
hdrPart := new(object.GetHeaderPartShort)
|
||||
hdrPart.SetShortHeader(shortHdr)
|
||||
|
||||
body := new(object.HeadResponseBody)
|
||||
body.SetHeaderPart(hdrPart)
|
||||
body.SetHeaderPart(shortHdr)
|
||||
|
||||
meta := new(session.ResponseMetaHeader)
|
||||
meta.SetTTL(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue