Write to stream
This commit is contained in:
parent
8ee9ded218
commit
ebf41ecb05
1 changed files with 3 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue