]> git.lizzy.rs Git - connect-rs.git/blobdiff - examples/tcp-client/src/main.rs
refactor read/write for correctness and ordering of messages
[connect-rs.git] / examples / tcp-client / src / main.rs
index 5e15adad32afb1e1733955535a2c61661c4b9447..827341d2a142c811b8dd5d439685dbe10ba99929 100644 (file)
@@ -28,12 +28,10 @@ async fn main() -> anyhow::Result<()> {
 
     // wait for the server to reply with an ack
     if let Some(mut reply) = conn.reader().next().await {
-        info!("Received message");
-
         let data = reply.take_data().unwrap();
         let msg = String::from_utf8(data)?;
 
-        info!("Unpacked reply: {}", msg);
+        info!("Received message: {}", msg);
     }
 
     Ok(())