File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ func (m *mergedSeries) Iterator(_ chunkenc.Iterator) chunkenc.Iterator {
4949}
5050
5151type quorumValuePicker struct {
52- currentValue int64
53- cnt int
52+ currentValue int64
53+ cnt int
5454}
5555
5656func NewQuorumValuePicker (v float64 ) * quorumValuePicker {
@@ -98,8 +98,8 @@ func (m *mergedSeriesIterator) Next() chunkenc.ValueType {
9898 continue
9999 }
100100 // apply penalty to avoid selecting samples too close
101- m .oks [i ] = it .Seek (m .lastT + initialPenalty ) != chunkenc .ValNone
102- // The it.Seek() call above should garantee that it.AtT() > m.lastT.
101+ m .oks [i ] = it .Seek (m .lastT + initialPenalty ) != chunkenc .ValNone
102+ // The it.Seek() call above should guarantee that it.AtT() > m.lastT.
103103 if m .oks [i ] {
104104 t , v := it .At ()
105105 if t < minT {
@@ -123,7 +123,8 @@ func (m *mergedSeriesIterator) Next() chunkenc.ValueType {
123123
124124func (m * mergedSeriesIterator ) Seek (t int64 ) chunkenc.ValueType {
125125 // Don't use underlying Seek, but iterate over next to not miss gaps.
126- for m .lastT < t && m .Next () != chunkenc .ValNone {}
126+ for m .lastT < t && m .Next () != chunkenc .ValNone {
127+ }
127128 // Don't call m.Next() again!
128129 if m .lastIter == nil {
129130 return chunkenc .ValNone
You can’t perform that action at this time.
0 commit comments