Skip to content

Commit

Permalink
fixing initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <[email protected]>
  • Loading branch information
pedro-stanaka committed Apr 10, 2024
1 parent fa657b0 commit 590e1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dedup/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ func (it *dedupSeriesIterator) Next() chunkenc.ValueType {

func (it *dedupSeriesIterator) lastFloatVal() (float64, bool) {
if it.useA && it.aval == chunkenc.ValFloat {
_, v := it.a.At()
_, v := it.lastIter.At()
return v, true
}
if !it.useA && it.bval == chunkenc.ValFloat {
_, v := it.b.At()
_, v := it.lastIter.At()
return v, true
}
return 0, false
Expand Down

0 comments on commit 590e1bb

Please sign in to comment.