mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic ws load test: gen random PeerId per connection
Necessary for multiple workers
This commit is contained in:
parent
2d3761fee2
commit
0a23b62bd5
3 changed files with 9 additions and 21 deletions
|
|
@ -5,16 +5,6 @@ use rand_distr::Pareto;
|
|||
pub use aquatic_ws_protocol::*;
|
||||
|
||||
|
||||
|
||||
#[derive(PartialEq, Eq, Clone)]
|
||||
pub struct TorrentPeer {
|
||||
pub info_hash: InfoHash,
|
||||
pub scrape_hash_indeces: Vec<usize>,
|
||||
pub peer_id: PeerId,
|
||||
pub port: u16,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Statistics {
|
||||
pub requests: AtomicUsize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue