tweak
This commit is contained in:
parent
dacef644a7
commit
90312a4332
2 changed files with 4 additions and 2 deletions
|
@ -20,15 +20,16 @@ impl App {
|
|||
|
||||
let [footer_left, footer_right] = Layout::default()
|
||||
.direction(Direction::Horizontal)
|
||||
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)])
|
||||
.constraints([Constraint::Percentage(30), Constraint::Percentage(70)])
|
||||
.split(bottom)
|
||||
.as_array()
|
||||
.cloned()
|
||||
.unwrap();
|
||||
|
||||
frame.render_widget(self, frame.area());
|
||||
network_info(frame, footer_left);
|
||||
peers(&self.peers, frame, footer_right);
|
||||
// draw the main frame last
|
||||
frame.render_widget(self, frame.area());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ async fn main() -> error::Result<()> {
|
|||
}
|
||||
}
|
||||
_ = tokio::time::sleep(tokio::time::Duration::from_secs(5)) => {
|
||||
println!("Exit timeout reached, aborting all unjoined tasks");
|
||||
handles.abort_all();
|
||||
break;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue