mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_ws: save peer even if AnnounceRequest.bytes_left is None
This commit is contained in:
parent
008d8b8eff
commit
cb66364fa5
3 changed files with 34 additions and 36 deletions
|
|
@ -103,7 +103,8 @@ pub struct AnnounceRequestOffer {
|
|||
pub struct AnnounceRequest {
|
||||
pub info_hash: InfoHash,
|
||||
pub peer_id: PeerId,
|
||||
/// Just called "left" in protocol
|
||||
/// Just called "left" in protocol. Is set to None in some cases, such as
|
||||
/// when opening a magnet link
|
||||
#[serde(rename = "left")]
|
||||
pub bytes_left: Option<usize>,
|
||||
/// Can be empty. Then, default is "update"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue