aboutsummaryrefslogtreecommitdiff
path: root/src/message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.rs b/src/message.rs
index 1834f28..ec9433a 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -454,6 +454,8 @@ impl RespEnc {
let msg_len = reader.read_u32().await?;
let msg = reader.read_exact(msg_len as usize).await?;
+ reader.fill_buffer().await;
+
Ok(Self {
msg,
stream: Some(reader.into_stream()),