]> git.lizzy.rs Git - connect-rs.git/blobdiff - examples/tls-client/src/main.rs
refactor read/write for correctness and ordering of messages
[connect-rs.git] / examples / tls-client / src / main.rs
index c0b9280a91b45947483a3c30d03ca171800582be..cee675066c4d58c4c8e3d67906a48acdafc4fe7c 100644 (file)
@@ -33,12 +33,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(())