Skip to content

Commit be07020

Browse files
committed
Revert return
1 parent 081ebef commit be07020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/logql/count_min_sketch.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ func (v *HeapCountMinSketchVector) Push(x any) {
241241
func (v *HeapCountMinSketchVector) Pop() any {
242242
old := v.Metrics
243243
n := len(old)
244+
x := old[n-1]
244245
v.Metrics = old[0 : n-1]
245-
return old[n-1]
246+
return x
246247
}
247248

248249
// JoinCountMinSketchVector joins the results from stepEvaluator into a CountMinSketchVector.

0 commit comments

Comments
 (0)