aquatic_ws_load_test: get answer sending to work with wt-tracker

This commit is contained in:
Joakim Frostegård 2020-08-03 07:02:42 +02:00
parent 01fdf40a02
commit 6f618bb013
5 changed files with 7 additions and 7 deletions

View file

@ -108,8 +108,8 @@ pub struct AnnounceRequest {
#[serde(rename = "left")]
pub bytes_left: Option<usize>,
/// Can be empty. Then, default is "update"
#[serde(default)]
pub event: AnnounceEvent,
#[serde(skip_serializing_if = "Option::is_none")]
pub event: Option<AnnounceEvent>,
/// Only when this is an array offers are sent to random peers
/// Length of this is number of peers wanted?