udp load test: store info hashes as Arc slice to save space

This commit is contained in:
Joakim Frostegård 2024-01-04 17:24:35 +01:00
parent 0eaa4475e2
commit 99791c7154
3 changed files with 7 additions and 7 deletions

View file

@ -46,7 +46,7 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
}
let state = LoadTestState {
info_hashes: Arc::new(info_hashes),
info_hashes: Arc::from(info_hashes.into_boxed_slice()),
statistics: Arc::new(Statistics::default()),
};