mirror of
https://github.com/mii443/rs-easy-p2p.git
synced 2025-12-03 03:08:21 +00:00
fix bin
This commit is contained in:
@@ -56,7 +56,7 @@ async fn chat(mut p2p: P2P) -> Result<()> {
|
|||||||
async move {
|
async move {
|
||||||
let mut receive = receive.lock().await;
|
let mut receive = receive.lock().await;
|
||||||
while let Some(data) = receive.recv().await {
|
while let Some(data) = receive.recv().await {
|
||||||
print!("Received: {}\n", String::from_utf8(data.to_vec()).unwrap());
|
print!("Received: {}", String::from_utf8(data.to_vec()).unwrap());
|
||||||
std::io::stdout().flush().unwrap();
|
std::io::stdout().flush().unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user