Skip to content

Commit

Permalink
fix closure
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 committed Apr 23, 2024
1 parent 09d7aa8 commit 9c0c87c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/querier/batch/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type iterator interface {
func NewChunkMergeIterator(chunks []chunk.Chunk, _, _ model.Time) chunkenc.Iterator {
converted := make([]GenericChunk, len(chunks))
for i, c := range chunks {
c := c
converted[i] = NewGenericChunk(int64(c.From), int64(c.Through), c.NewIterator)
}

Expand Down

0 comments on commit 9c0c87c

Please sign in to comment.