Simplify stones counting.
@@ -474,9 +474,7 @@ func (pb *Block) CleanTombstones(dest string, c Compactor) (bool, error) {
numStones := 0
pb.tombstones.Iter(func(id uint64, ivs Intervals) error {
- for range ivs {
- numStones++
- }
+ numStones += len(ivs)
return nil
})
