mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp: remove unused config var max_requests_per_iter
This commit is contained in:
parent
7afaa2702a
commit
5ef0935c97
4 changed files with 2 additions and 12 deletions
|
|
@ -7,7 +7,6 @@ use rand::Rng;
|
|||
use rand_distr::Pareto;
|
||||
|
||||
use aquatic_udp::common::*;
|
||||
use aquatic_udp::config::Config;
|
||||
use aquatic_udp_protocol::*;
|
||||
|
||||
use crate::common::*;
|
||||
|
|
@ -15,7 +14,6 @@ use crate::config::BenchConfig;
|
|||
|
||||
pub fn bench_scrape_handler(
|
||||
bench_config: &BenchConfig,
|
||||
aquatic_config: &Config,
|
||||
request_sender: &Sender<(SocketWorkerIndex, ConnectedRequest, SocketAddr)>,
|
||||
response_receiver: &Receiver<(ConnectedResponse, SocketAddr)>,
|
||||
rng: &mut impl Rng,
|
||||
|
|
@ -28,7 +26,7 @@ pub fn bench_scrape_handler(
|
|||
bench_config.num_hashes_per_scrape_request,
|
||||
);
|
||||
|
||||
let p = aquatic_config.handlers.max_requests_per_iter * bench_config.num_threads;
|
||||
let p = 10_000 * bench_config.num_threads; // FIXME: adjust to sharded workers
|
||||
let mut num_responses = 0usize;
|
||||
|
||||
let mut dummy: i32 = rng.gen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue