docs: comments

This commit is contained in:
Jack Wills
2022-09-06 14:40:00 +00:00
parent 211f481c38
commit 3d760d23cd
4 changed files with 3 additions and 12 deletions
+1
View File
@@ -100,6 +100,7 @@ async fn main() {
.unwrap_or(());
} else {
loop {
// TODO this needs to be improved to display something useful
info!("in debug mode");
tokio::time::sleep(std::time::Duration::from_millis(5000)).await;
}
+1 -1
View File
@@ -109,7 +109,7 @@ async fn run_app<B: Backend + Send>(
if terminal.draw(|f| ui(f, &app_data, &gui_state)).is_err() {
return Err(AppError::Terminal);
}
if crossterm::event::poll(input_poll_rate).unwrap_or_default() {
if crossterm::event::poll(input_poll_rate).unwrap_or(false) {
if let Ok(event) = event::read() {
if let Event::Key(key) = event {
sender