diff --git a/tsdb/compact.go b/tsdb/compact.go index 2104d5de5..dd59ff435 100644 --- a/tsdb/compact.go +++ b/tsdb/compact.go @@ -1056,9 +1056,7 @@ func (c *LeveledCompactor) populateBlock(blocks []BlockReader, minT, maxT int64, defer blockWriters[ix].closeAsync() // Make sure to close writer to stop goroutine. } - var ( - chksIter chunks.Iterator - ) + var chksIter chunks.Iterator set := sets[0] if len(sets) > 1 {