concurrent reading

This commit is contained in:
Jana Dönszelmann 2026-02-25 15:32:13 +01:00
parent 3d9114dea9
commit 1f6679f57f
No known key found for this signature in database
8 changed files with 104 additions and 84 deletions

View file

@ -1,4 +1,4 @@
use std::rc::Rc;
use std::sync::Arc;
use crate::tui::{model::LogEntry, processing::LogStream};
@ -8,7 +8,7 @@ pub struct LogView {
}
impl LogView {
pub fn selected(&self) -> Option<(Rc<LogEntry>, usize)> {
pub fn selected(&self) -> Option<(Arc<LogEntry>, usize)> {
let mut temp_iter = self.iter.clone();
for _ in 0..self.selection_offset {
let _ = temp_iter.next()?;