[#1697] object: Make patch streamer use ApplyHeaderPatch

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2025-03-25 14:38:20 +03:00
parent aa0dc2deae
commit cf8b35ba01

View file

@ -195,7 +195,12 @@ func (s *Streamer) Send(ctx context.Context, req *objectV2.PatchRequest) error {
patch.FromV2(req.GetBody())
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 {
return fmt.Errorf("patch attributes: %w", err)
}