forward filters (ugly)
This commit is contained in:
parent
1f6679f57f
commit
de51666742
8 changed files with 167 additions and 97 deletions
|
|
@ -14,7 +14,7 @@ use std::{
|
|||
|
||||
use crate::tui::{
|
||||
model::{LogEntry, RawLogEntry},
|
||||
processing::LogStream,
|
||||
processing::{FilterList, LogStream},
|
||||
};
|
||||
|
||||
struct LogFileEntryGenerator {
|
||||
|
|
@ -139,14 +139,14 @@ pub struct LogFileReaderStream {
|
|||
}
|
||||
|
||||
impl LogStream for LogFileReaderStream {
|
||||
fn next(&mut self) -> Option<(Arc<LogEntry>, usize)> {
|
||||
fn next(&mut self, _fl: &FilterList) -> Option<(Arc<LogEntry>, usize)> {
|
||||
let entry = self.reader.fill_buf_to_access_index(self.curr)?;
|
||||
self.curr += 1;
|
||||
|
||||
Some((entry, 0))
|
||||
}
|
||||
|
||||
fn prev(&mut self) -> Option<(Arc<LogEntry>, usize)> {
|
||||
fn prev(&mut self, _fl: &FilterList) -> Option<(Arc<LogEntry>, usize)> {
|
||||
if self.curr == 0 {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue