From 446c6ccc86eca0fbe0938e08571cbe7728884f29 Mon Sep 17 00:00:00 2001 From: Mike English Date: Sat, 2 Nov 2024 02:43:59 -0400 Subject: [PATCH] fixup! moq-transport: Add payload length to datagrams --- moq-transport/src/data/datagram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moq-transport/src/data/datagram.rs b/moq-transport/src/data/datagram.rs index 5b74977..c052f9e 100644 --- a/moq-transport/src/data/datagram.rs +++ b/moq-transport/src/data/datagram.rs @@ -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());