Skip to content

Commit

Permalink
Swap field order: send order and id
Browse files Browse the repository at this point in the history
  • Loading branch information
englishm committed Jun 18, 2024
1 parent 42d57dd commit 86d316e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moq-transport/src/data/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ pub struct ObjectHeader {
// The sequence number within the track.
pub group_id: u64,

// The sequence number within the group.
pub object_id: u64,

// The send order, where **smaller** values are sent first.
pub send_order: u64,

// The sequence number within the group.
pub object_id: u64,
}

impl Decode for ObjectHeader {
Expand All @@ -24,8 +24,8 @@ impl Decode for ObjectHeader {
subscribe_id: u64::decode(r)?,
track_alias: u64::decode(r)?,
group_id: u64::decode(r)?,
object_id: u64::decode(r)?,
send_order: u64::decode(r)?,
object_id: u64::decode(r)?,
})
}
}
Expand All @@ -35,8 +35,8 @@ impl Encode for ObjectHeader {
self.subscribe_id.encode(w)?;
self.track_alias.encode(w)?;
self.group_id.encode(w)?;
self.object_id.encode(w)?;
self.send_order.encode(w)?;
self.object_id.encode(w)?;

Ok(())
}
Expand Down

0 comments on commit 86d316e

Please sign in to comment.