object/get: Replace code with function call

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2020-12-10 15:19:23 +03:00 committed by Alex Vanin
parent 63bc3aab82
commit 3bfb18386b
1 changed files with 1 additions and 3 deletions

View File

@ -35,9 +35,7 @@ func (s *Service) toPrm(req *objectV2.GetRequest, stream objectSvc.GetObjectStre
p.WithRawFlag(body.GetRaw())
p.SetRemoteCallOptions(remoteCallOptionsFromMeta(meta)...)
p.SetObjectWriter(&streamObjectWriter{stream})
p.SetCommonParameters(new(util.CommonPrm).
WithLocalOnly(meta.GetTTL() <= 1),
)
p.SetCommonParameters(commonParameters(meta))
return p, nil
}