fix client

This commit is contained in:
griffi-gh 2023-03-09 18:00:32 +01:00
parent 739e53c0a9
commit d239a59fc4

View file

@ -114,8 +114,7 @@ fn check_server_hello_response(
fn decompress_chunk_packet(data: &Box<[u8]>) -> Result<ServerToClientMessage> {
let mut decompressed = decompress_size_prepended(&data[1..])?;
decompressed.insert(0, data[0]);
let deserialized = postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?;
Ok(deserialized)
Ok(postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?)
}
//TODO get rid of this, this is awfulll