aquatic_ws: shorten field names in ConnectionMeta, PeerConnection

This commit is contained in:
Joakim Frostegård 2020-05-11 16:19:40 +02:00
parent da2d5986b9
commit b76f8cdebc
4 changed files with 16 additions and 18 deletions

View file

@ -96,7 +96,7 @@ pub struct AnnounceRequest {
pub peer_id: PeerId,
/// Just called "left" in protocol
#[serde(rename = "left")]
pub bytes_left: Option<usize>, // FIXME: I had this set as bool before, check!
pub bytes_left: Option<usize>,
/// Can be empty. Then, default is "update"
#[serde(default)]
pub event: AnnounceEvent,