forward filters (ugly)

This commit is contained in:
Jana Dönszelmann 2026-02-25 17:14:40 +01:00
parent 1f6679f57f
commit de51666742
No known key found for this signature in database
8 changed files with 167 additions and 97 deletions

View file

@ -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;
}