forked from TrueCloudLab/frostfs-node
object/get: Replace code with function call
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
63bc3aab82
commit
3bfb18386b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue