mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic ws load test: make NUM_CONNECTIONS a config field
This commit is contained in:
parent
55045279ac
commit
364606a025
2 changed files with 4 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ use serde::{Serialize, Deserialize};
|
|||
pub struct Config {
|
||||
pub server_address: SocketAddr,
|
||||
pub num_workers: u8,
|
||||
pub num_connections: usize,
|
||||
pub duration: usize,
|
||||
pub network: NetworkConfig,
|
||||
pub torrents: TorrentConfig,
|
||||
|
|
@ -46,6 +47,7 @@ impl Default for Config {
|
|||
Self {
|
||||
server_address: "127.0.0.1:3000".parse().unwrap(),
|
||||
num_workers: 1,
|
||||
num_connections: 8,
|
||||
duration: 0,
|
||||
network: NetworkConfig::default(),
|
||||
torrents: TorrentConfig::default(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue