Skip to content

Commit

Permalink
add 500 millis for wait tcp connection end
Browse files Browse the repository at this point in the history
  • Loading branch information
DefectingCat committed Aug 8, 2023
1 parent 6e62dc5 commit a151fe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::{thread, time::Duration};

use anyhow::Result;
use clap::Parser;
use pluto::{error::PlutoError, HttpMethod, PingMethod, Pluto};
Expand Down Expand Up @@ -81,7 +83,7 @@ async fn ping(arg_count: usize, timeout: bool, pluto: &mut Pluto) {
count += 1;
match pluto.ping().await {
Ok(_) => {
// thread::sleep(Duration::from_millis(500));
thread::sleep(Duration::from_millis(500));
}
Err(err) => {
eprintln!("Ping {}", err)
Expand Down

0 comments on commit a151fe1

Please sign in to comment.