bugfixing
This commit is contained in:
parent
c73be7166f
commit
ae5ce58eec
6 changed files with 103 additions and 44 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue