refactor client byte write / read

This commit is contained in:
2025-07-01 16:59:39 +02:00
parent 87eb32eb5d
commit cff5c37a40
11 changed files with 80 additions and 138 deletions

View File

@@ -22,7 +22,7 @@ impl Expire {
}
pub fn parse(buf: &mut Cursor<&[u8]>) -> Result<Self> {
let key = buf.try_get_string()?;
let key = buf.try_get_short_string()?;
let seconds = buf.try_get_u64()?;
Ok(Self { key, seconds })