This commit is contained in:
Joe Ardent 2025-07-09 10:40:01 -07:00
parent dacef644a7
commit 90312a4332
2 changed files with 4 additions and 2 deletions

View file

@ -20,15 +20,16 @@ impl App {
let [footer_left, footer_right] = Layout::default() let [footer_left, footer_right] = Layout::default()
.direction(Direction::Horizontal) .direction(Direction::Horizontal)
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)]) .constraints([Constraint::Percentage(30), Constraint::Percentage(70)])
.split(bottom) .split(bottom)
.as_array() .as_array()
.cloned() .cloned()
.unwrap(); .unwrap();
frame.render_widget(self, frame.area());
network_info(frame, footer_left); network_info(frame, footer_left);
peers(&self.peers, frame, footer_right); peers(&self.peers, frame, footer_right);
// draw the main frame last
frame.render_widget(self, frame.area());
} }
} }

View file

@ -56,6 +56,7 @@ async fn main() -> error::Result<()> {
} }
} }
_ = tokio::time::sleep(tokio::time::Duration::from_secs(5)) => { _ = tokio::time::sleep(tokio::time::Duration::from_secs(5)) => {
println!("Exit timeout reached, aborting all unjoined tasks");
handles.abort_all(); handles.abort_all();
break; break;
}, },