Skip to content

Commit

Permalink
fix(network/codec): decode response right way
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Aug 1, 2023
1 parent 270aca2 commit 0fb49d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfo-network/src/codec/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ fn do_decode(frame: &mut Cursor<&[u8]>) -> Result<NetworkEnvelope, DecodeError>
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,
}
Expand Down

0 comments on commit 0fb49d5

Please sign in to comment.