aquatic_ws_load_test: send num_want and better offer fake type

This means wt-tracker starts sending offers
This commit is contained in:
Joakim Frostegård 2020-08-03 06:52:29 +02:00
parent aee97b77a1
commit 01fdf40a02
4 changed files with 15 additions and 12 deletions

View file

@ -196,7 +196,7 @@ 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::Value::from(JSON_VALUE)));
r.answer = Some(JsonValue(::serde_json::json!({"abc": "def"})));
r.offers = None;
}
@ -219,7 +219,7 @@ impl Connection {
false
}
Err(err) => {
eprintln!("send request error: {:?}", err);
// eprintln!("send request error: {:?}", err);
true
}