aquatic: config: change default settings

This commit is contained in:
Joakim Frostegård 2020-04-13 12:50:53 +02:00
parent ca52b44389
commit 8f68b3a9a2
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ pub struct HandlerConfig {
/// Maximum number of requests to receive from channel before locking
/// mutex and starting work
pub max_requests_per_iter: usize,
pub channel_recv_timeout_ms: u64,
pub channel_recv_timeout_microseconds: u64,
}
@ -93,8 +93,8 @@ impl Default for NetworkConfig {
impl Default for HandlerConfig {
fn default() -> Self {
Self {
max_requests_per_iter: 2048,
channel_recv_timeout_ms: 1,
max_requests_per_iter: 10000,
channel_recv_timeout_microseconds: 200,
}
}
}

View file

@ -28,8 +28,8 @@ pub fn run_request_worker(
let mut std_rng = StdRng::from_entropy();
let mut small_rng = SmallRng::from_rng(&mut std_rng).unwrap();
let timeout = Duration::from_millis(
config.handlers.channel_recv_timeout_ms
let timeout = Duration::from_micros(
config.handlers.channel_recv_timeout_microseconds
);
loop {