mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
fix client
This commit is contained in:
parent
739e53c0a9
commit
d239a59fc4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue