aquatic_ws: pass on offers to other peers; minor fixes

This commit is contained in:
Joakim Frostegård 2020-05-08 21:05:46 +02:00
parent f2ae494902
commit 5b58db90e3
5 changed files with 130 additions and 31 deletions

View file

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