bugfixing

This commit is contained in:
Jana Dönszelmann 2026-02-24 22:04:35 +01:00
parent c73be7166f
commit ae5ce58eec
No known key found for this signature in database
6 changed files with 103 additions and 44 deletions

View file

@ -118,14 +118,14 @@ pub struct LogFileReaderStream {
}
impl LogStream for LogFileReaderStream {
fn next(&mut self) -> Option<Rc<LogEntry>> {
fn next(&mut self) -> Option<(Rc<LogEntry>, usize)> {
let entry = self.reader.fill_buf_to_access_index(self.curr)?;
self.curr += 1;
Some(entry)
Some((entry, 0))
}
fn prev(&mut self) -> Option<Rc<LogEntry>> {
fn prev(&mut self) -> Option<(Rc<LogEntry>, usize)> {
if self.curr == 0 {
return None;
}
@ -133,7 +133,7 @@ impl LogStream for LogFileReaderStream {
let entry = self.reader.fill_buf_to_access_index(self.curr)?;
self.curr -= 1;
Some(entry)
Some((entry, 0))
}
fn clone(&self) -> Box<dyn LogStream> {