mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
udp load test: remove ThreadId newtype, use poll token 0 in all workers
This commit is contained in:
parent
f068d86e0d
commit
9d8f9d8f7c
3 changed files with 2 additions and 7 deletions
|
|
@ -24,7 +24,6 @@ pub fn run_worker_thread(
|
|||
pareto: Pareto<f64>,
|
||||
config: &Config,
|
||||
addr: SocketAddr,
|
||||
thread_id: ThreadId,
|
||||
) {
|
||||
let mut socket = UdpSocket::from_std(create_socket(config, addr));
|
||||
let mut buffer = [0u8; MAX_PACKET_SIZE];
|
||||
|
|
@ -32,7 +31,7 @@ pub fn run_worker_thread(
|
|||
let mut rng = SmallRng::from_rng(thread_rng()).expect("create SmallRng from thread_rng()");
|
||||
let mut torrent_peers = TorrentPeerMap::default();
|
||||
|
||||
let token = Token(thread_id.0 as usize);
|
||||
let token = Token(0);
|
||||
let interests = Interest::READABLE;
|
||||
let timeout = Duration::from_micros(config.network.poll_timeout);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue