[#1697] object: Make patch streamer use ApplyHeaderPatch
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
aa0dc2deae
commit
cf8b35ba01
1 changed files with 6 additions and 1 deletions
|
@ -195,7 +195,12 @@ func (s *Streamer) Send(ctx context.Context, req *objectV2.PatchRequest) error {
|
||||||
patch.FromV2(req.GetBody())
|
patch.FromV2(req.GetBody())
|
||||||
|
|
||||||
if !s.nonFirstSend {
|
if !s.nonFirstSend {
|
||||||
err := s.patcher.ApplyAttributesPatch(ctx, patch.NewAttributes, patch.ReplaceAttributes)
|
err := s.patcher.ApplyHeaderPatch(ctx,
|
||||||
|
patcher.ApplyHeaderPatchPrm{
|
||||||
|
NewSplitHeader: patch.NewSplitHeader,
|
||||||
|
NewAttributes: patch.NewAttributes,
|
||||||
|
ReplaceAttributes: patch.ReplaceAttributes,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("patch attributes: %w", err)
|
return fmt.Errorf("patch attributes: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue