diff --git a/src/chat/front_conn.rs b/src/chat/front_conn.rs index 404c0be..d5f4036 100644 --- a/src/chat/front_conn.rs +++ b/src/chat/front_conn.rs @@ -94,7 +94,7 @@ async fn accept_client(stream: TcpStream, server_sender: SP) -> io::Result<()> { pub fn responding_to_server(server_sender: SP, client_receiver: RP) -> io::Result<()> { while let Ok(res) = client_receiver.recv() { - println!("From SERVER!:\n {}", res.message); + println!("From Server!:\n {}", res.message); } Ok(()) } diff --git a/src/chat/serv_conn.rs b/src/chat/serv_conn.rs index 4c31e88..661f0b8 100644 --- a/src/chat/serv_conn.rs +++ b/src/chat/serv_conn.rs @@ -64,7 +64,7 @@ async fn accept_server(stream: TcpStream, client_sender: SP) -> io::Result<()> { pub fn responding_to_client(client_sender: SP, server_receiver: RP) -> io::Result<()> { while let Ok(res) = server_receiver.recv() { - println!("From SERVER!:\n {}", res.message); + println!("From Client!:\n {}", res.message); } Ok(()) } diff --git a/src/main.rs b/src/main.rs index 7026c7f..e3f72d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ use std::{ | | | | +----------------------+ | | +-----------------------------+ | | | | | | | | | | | | | | | | | | | | | | | Encode | | | | | | | | | -| | | | | <----------------------------- from JSON <-------------------------------- | +| <----------------------------- <----------------------------- from JSON <-------------------------------- | | | | | | | | | | | | | | | | | | | +----------------------+ | | +-----------------------------+ | | | | +--------------+ | | | | | | | |