Skip to content

Commit

Permalink
Fix metricBucket losing object size in Upload
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Asp <[email protected]>
  • Loading branch information
andyasp committed Sep 20, 2023
1 parent eb06103 commit 0cc6ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ func (b *metricBucket) Upload(ctx context.Context, name string, r io.Reader) err
b.ops.WithLabelValues(op).Inc()

trc := newTimingReadCloser(
io.NopCloser(r),
NopCloserWithSize(r),
op,
b.opsDuration,
b.opsFailures,
Expand Down

0 comments on commit 0cc6ab5

Please sign in to comment.