udp load test: rewrite network loop, default to weight_announce=5

This commit is contained in:
Joakim Frostegård 2021-11-17 00:58:08 +01:00
parent c5bf3901ea
commit eb511c3a4c
3 changed files with 66 additions and 110 deletions

View file

@ -51,7 +51,6 @@ fn run(config: Config) -> ::anyhow::Result<()> {
let state = LoadTestState {
info_hashes: Arc::new(info_hashes),
statistics: Arc::new(Statistics::default()),
responses: Default::default(),
};
let pareto = Pareto::new(1.0, config.handler.torrent_selection_pareto_shape).unwrap();