diff --git a/problem_02/src/connection.rs b/problem_02/src/connection.rs index 418c163..41f8e47 100644 --- a/problem_02/src/connection.rs +++ b/problem_02/src/connection.rs @@ -65,7 +65,9 @@ impl Connection { debug!(?frame); if let Frame::Response(mean) = frame { let _ = self.stream.write(&[mean.to_ne_bytes()[0]]).await?; - self.stream.flush().await? + let _ = self.stream.flush().await?; + info!("Wrote frame to stream"); + return Ok(()); } Err("Wrong frame".into())