Skip to content

Commit

Permalink
Merge pull request #38 from dark0dave/chore/noise
Browse files Browse the repository at this point in the history
chore(noise): Be less noisy
  • Loading branch information
dark0dave authored Dec 2, 2023
2 parents 5453feb + c255be2 commit 1ee0d9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/weidu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,13 @@ pub fn handle_io(mut child: Child) -> InstallationResult {
}
}
Err(TryRecvError::Empty) => {
log::info!("Waiting for child process to end");
log::info!("{}\r", ".".repeat(wait_counter));
std::io::stdout().flush().expect("Failed to flush stdout");

wait_counter += 1;
wait_counter %= 10;
sleep(500);
sleep(1000);

log::info!(
"\r \r"
);
std::io::stdout().flush().expect("Failed to flush stdout");
}
Err(TryRecvError::Disconnected) => break,
Expand Down

0 comments on commit 1ee0d9e

Please sign in to comment.