Skip to content

Commit 782edb0

Browse files
committed
comments
Signed-off-by: Alan Protasio <[email protected]>
1 parent db6d7a9 commit 782edb0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

pkg/querier/batch/merge.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ type mergeIterator struct {
2121
currErr error
2222
}
2323

24-
func (c *mergeIterator) MaxCurrentChunkTime() int64 {
25-
if len(c.h) < 1 {
26-
return -1
27-
}
28-
29-
return c.h[0].MaxCurrentChunkTime()
30-
}
31-
3224
func newMergeIterator(cs []GenericChunk) *mergeIterator {
3325
css := partitionChunks(cs)
3426
its := make([]*nonOverlappingIterator, 0, len(css))
@@ -136,8 +128,12 @@ func (c *mergeIterator) AtTime() int64 {
136128
return c.batches[0].Timestamps[0]
137129
}
138130

139-
func (c *mergeIterator) MaxTIme() int64 {
140-
return c.h[0].AtTime()
131+
func (c *mergeIterator) MaxCurrentChunkTime() int64 {
132+
if len(c.h) < 1 {
133+
return -1
134+
}
135+
136+
return c.h[0].MaxCurrentChunkTime()
141137
}
142138

143139
func (c *mergeIterator) Batch() promchunk.Batch {

0 commit comments

Comments
 (0)