udp load test: store peer scrape_hash_indices as boxed slice

This commit is contained in:
Joakim Frostegård 2024-01-04 17:28:48 +01:00
parent 99791c7154
commit 55516956ca
2 changed files with 9 additions and 10 deletions

View file

@ -7,7 +7,7 @@ use aquatic_udp_protocol::*;
#[derive(PartialEq, Eq, Clone)]
pub struct TorrentPeer {
pub info_hash: InfoHash,
pub scrape_hash_indeces: Vec<usize>,
pub scrape_hash_indices: Box<[usize]>,
pub connection_id: ConnectionId,
pub peer_id: PeerId,
pub port: Port,