mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-14 03:18:41 -06:00
fix
This commit is contained in:
parent
acbf1cbe77
commit
2a2e22cf72
|
@ -114,7 +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 data_ref = &data[1..];
|
let data_ref = &data[1..];
|
||||||
let decompressed = decompress_size_prepended(data_ref).ok().context("Decompress failed")?;
|
let decompressed = decompress_size_prepended(data_ref).ok().context("Decompress failed")?;
|
||||||
let deserialized = postcard::from_bytes(&decompressed)?;
|
let deserialized = postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?;
|
||||||
Ok(deserialized)
|
Ok(deserialized)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue