diff --git a/objstore.go b/objstore.go index f772d51a..5bcc55f1 100644 --- a/objstore.go +++ b/objstore.go @@ -608,8 +608,6 @@ func (b *metricBucket) Upload(ctx context.Context, name string, r io.Reader) err if !b.isOpFailureExpected(err) && ctx.Err() != context.Canceled { b.opsFailures.WithLabelValues(op).Inc() } - - trc.Close() return err } b.lastSuccessfulUploadTime.SetToCurrentTime()