This commit is contained in:
Bastian Gruber 2023-04-24 23:04:13 +02:00
parent 7795854613
commit 8ee9ded218
No known key found for this signature in database
GPG key ID: BE9F8C772B188CBF
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ impl Connection {
debug!(?frame);
if let Frame::Response(mean) = frame {
let _ = self.stream.write(&[mean.to_ne_bytes()[0]]).await?;
return Ok(());
self.stream.flush().await?
}
Err("Wrong frame".into())

View file

@ -9,7 +9,7 @@ pub mod server;
mod shutdown;
use shutdown::Shutdown;
pub const DEFAULT_PORT: u16 = 6379;
pub const DEFAULT_PORT: u16 = 1222;
pub type Error = Box<dyn std::error::Error + Send + Sync>;
pub type Result<T> = std::result::Result<T, Error>;