mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
aquatic_ws_load_test: get answer sending to work with wt-tracker
This commit is contained in:
parent
01fdf40a02
commit
6f618bb013
5 changed files with 7 additions and 7 deletions
|
|
@ -196,7 +196,8 @@ impl Connection {
|
|||
if let Some((peer_id, offer_id)) = self.send_answer {
|
||||
r.to_peer_id = Some(peer_id);
|
||||
r.offer_id = Some(offer_id);
|
||||
r.answer = Some(JsonValue(::serde_json::json!({"abc": "def"})));
|
||||
r.answer = Some(JsonValue(::serde_json::json!({"sdp": "def"})));
|
||||
r.event = None;
|
||||
r.offers = None;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ fn create_announce_request(
|
|||
info_hash: state.info_hashes[info_hash_index],
|
||||
peer_id,
|
||||
bytes_left: Some(bytes_left),
|
||||
event,
|
||||
event: Some(event),
|
||||
numwant: Some(offers.len()),
|
||||
offers: Some(offers),
|
||||
answer: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue