mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic http load test: clean up ununsed struct, config field
This commit is contained in:
parent
597a2a83d1
commit
27071fa2df
2 changed files with 0 additions and 9 deletions
|
|
@ -7,10 +7,6 @@ pub use aquatic_http_protocol::response::*;
|
|||
pub use aquatic_http_protocol::request::*;
|
||||
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)]
|
||||
pub struct ThreadId(pub u8);
|
||||
|
||||
|
||||
#[derive(PartialEq, Eq, Clone)]
|
||||
pub struct TorrentPeer {
|
||||
pub info_hash: InfoHash,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use serde::{Serialize, Deserialize};
|
|||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[serde(default)]
|
||||
pub struct Config {
|
||||
/// Server address
|
||||
pub server_address: SocketAddr,
|
||||
pub num_workers: u8,
|
||||
pub duration: usize,
|
||||
|
|
@ -26,10 +25,7 @@ pub struct NetworkConfig {
|
|||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[serde(default)]
|
||||
pub struct TorrentConfig {
|
||||
/// Number of torrents to simulate
|
||||
pub number_of_torrents: usize,
|
||||
/// Maximum number of torrents to ask about in scrape requests
|
||||
pub scrape_max_torrents: usize,
|
||||
/// Pareto shape
|
||||
///
|
||||
/// Fake peers choose torrents according to Pareto distribution.
|
||||
|
|
@ -72,7 +68,6 @@ impl Default for TorrentConfig {
|
|||
Self {
|
||||
number_of_torrents: 10_000,
|
||||
peer_seeder_probability: 0.25,
|
||||
scrape_max_torrents: 50,
|
||||
torrent_selection_pareto_shape: 2.0,
|
||||
weight_announce: 5,
|
||||
weight_scrape: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue