concurrent reading
This commit is contained in:
parent
3d9114dea9
commit
1f6679f57f
8 changed files with 104 additions and 84 deletions
|
|
@ -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()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue