diff --git a/src/postings/mod.rs b/src/postings/mod.rs index d0ecdb9f5..acf1db532 100644 --- a/src/postings/mod.rs +++ b/src/postings/mod.rs @@ -263,7 +263,7 @@ mod tests { b.iter(|| { let mut segment_postings = segment_reader.read_postings(&*TERM_A, SegmentPostingsOption::NoFreq).unwrap(); - while segment_postings.advance() {} + while segment_postings.advance_block() {} }); } diff --git a/src/postings/segment_postings.rs b/src/postings/segment_postings.rs index 894caf76e..fccb31170 100644 --- a/src/postings/segment_postings.rs +++ b/src/postings/segment_postings.rs @@ -103,7 +103,10 @@ impl<'a> SegmentPostings<'a> { } } - + pub fn advance_block(&mut self) -> bool { + self.block_cursor.advance() + } + /// Returns an empty segment postings object pub fn empty() -> SegmentPostings<'static> { let empty_block_cursor = SegmentPostingsBlockCursor::empty();