Skip to content

Commit

Permalink
Keep write sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Oct 24, 2023
1 parent 40f71aa commit b7e41d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::join;
use tokio::net::tcp::{OwnedReadHalf, OwnedWriteHalf};
use tokio::net::TcpStream;
use tokio::sync::Mutex;
use tokio::time::timeout;
use tokio::time::{sleep, timeout};

use crate::hex::hex;
use crate::sha1;
Expand Down Expand Up @@ -321,7 +321,7 @@ pub async fn write_loop(
};
send_message(&mut stream, request_msg).await?;
}
// sleep(Duration::new(0, 100e6 as u32)).await;
sleep(Duration::new(0, 100e6 as u32)).await;
}
}

Expand Down

0 comments on commit b7e41d4

Please sign in to comment.