udp: statistics: show number of torrents and access list len

This commit is contained in:
Joakim Frostegård 2021-11-19 12:04:16 +01:00
parent 31e44db469
commit 59e95894b9
7 changed files with 84 additions and 9 deletions

View file

@ -50,9 +50,16 @@ pub fn run(bench_config: BenchConfig) -> ::anyhow::Result<()> {
{
let config = aquatic_config.clone();
let state = State::new(config.request_workers);
::std::thread::spawn(move || {
run_request_worker(config, State::default(), request_receiver, response_sender)
run_request_worker(
config,
state,
request_receiver,
response_sender,
RequestWorkerIndex(0),
)
});
}