metrics: Fix container_size_bytes for EC #1318

Merged
fyrchik merged 3 commits from acid-ant/frostfs-node:bugfix/ec-fix-container-size-b into master 2024-09-04 19:51:11 +00:00
Showing only changes of commit 8319b59238 - Show all commits

View file

@ -213,6 +213,7 @@ func (s putStreamMetric) CloseAndRecv(ctx context.Context) (*object.PutResponse,
return res, err
}

unacceptable

unacceptable

ah, gofumpt
on a side-note -- we have added it in CI, doesn't it work now?
It seems this was introduced in patch, everything was green there.

ah, gofumpt on a side-note -- we have added it in CI, doesn't it work now? It seems this was introduced in patch, everything was green there.
func (s patchStreamMetric) Send(ctx context.Context, req *object.PatchRequest) error {
s.metrics.AddPayloadSize("Patch", len(req.GetBody().GetPatch().GetChunk()))