File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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-
3224func 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
143139func (c * mergeIterator ) Batch () promchunk.Batch {
You can’t perform that action at this time.
0 commit comments