diff --git a/problem_02/src/connection.rs b/problem_02/src/connection.rs index cea6d1e..43b2127 100644 --- a/problem_02/src/connection.rs +++ b/problem_02/src/connection.rs @@ -64,7 +64,7 @@ impl Connection { pub async fn write_frame(&mut self, frame: &Frame) -> tokio::io::Result<()> { debug!(?frame); if let Frame::Response(mean) = frame { - let res = self.stream.write(&[mean.to_ne_bytes()[0]]).await?; + let _ = self.stream.write_i32(*mean as i32).await?; info!("Write frame Response to stream"); return self.stream.flush().await; }