object/get: Replace code with function call

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-10 15:19:23 +03:00 committed by Alex Vanin
parent 63bc3aab82
commit 3bfb18386b

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
}