ws load test: add config field for connection creation interval

This commit is contained in:
Joakim Frostegård 2020-08-01 23:20:55 +02:00
parent aa0094164a
commit f561ca9794
2 changed files with 4 additions and 4 deletions

View file

@ -18,6 +18,7 @@ pub struct Config {
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(default)]
pub struct NetworkConfig {
pub connection_creation_interval: usize,
pub poll_timeout_microseconds: u64,
pub poll_event_capacity: usize,
}
@ -58,6 +59,7 @@ impl Default for Config {
impl Default for NetworkConfig {
fn default() -> Self {
Self {
connection_creation_interval: 40,
poll_timeout_microseconds: 1000,
poll_event_capacity: 4096,
}