This commit is contained in:
mii443
2024-08-31 22:39:01 +09:00
parent ac9c39d1a6
commit b0e0692b87

View File

@ -56,7 +56,7 @@ async fn chat(mut p2p: P2P) -> Result<()> {
async move {
let mut receive = receive.lock().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();
}
}