mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-12 18:38:43 -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> {
|
fn decompress_chunk_packet(data: &Box<[u8]>) -> Result<ServerToClientMessage> {
|
||||||
let mut decompressed = decompress_size_prepended(&data[1..])?;
|
let mut decompressed = decompress_size_prepended(&data[1..])?;
|
||||||
decompressed.insert(0, data[0]);
|
decompressed.insert(0, data[0]);
|
||||||
let deserialized = postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?;
|
Ok(postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?)
|
||||||
Ok(deserialized)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO get rid of this, this is awfulll
|
//TODO get rid of this, this is awfulll
|
||||||
|
|
Loading…
Reference in a new issue