Skip to content

Commit

Permalink
fixup! moq-transport: Add payload length to datagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
englishm committed Nov 2, 2024
1 parent b51f49a commit 446c6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moq-transport/src/data/datagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Decode for Datagram {
let object_status = ObjectStatus::decode(r)?;
let payload_len = u64::decode(r)?;
if payload_len != r.remaining() as u64 {
return Err(DecodeError::InvalidLength(payload_len as usize, r.remaining() as usize));
return Err(DecodeError::InvalidLength(payload_len as usize, r.remaining()));
}
let payload = r.copy_to_bytes(r.remaining());

Expand Down

0 comments on commit 446c6cc

Please sign in to comment.