diff --git a/elfo-network/src/codec/decode.rs b/elfo-network/src/codec/decode.rs index 42cfacb8..ce37a10c 100644 --- a/elfo-network/src/codec/decode.rs +++ b/elfo-network/src/codec/decode.rs @@ -243,7 +243,7 @@ fn do_decode(frame: &mut Cursor<&[u8]>) -> Result KIND_RESPONSE_OK => { let request_id = get_request_id(frame)?; Response { - request_id: get_request_id(frame)?, + request_id, message: Ok(map_decode_error(get_message(frame), Some(request_id))?), is_last: flags & FLAG_IS_LAST_RESPONSE != 0, }