ws: SwarmControlMessage::ConnectionClosed: use Vec for info hashes

This commit is contained in:
Joakim Frostegård 2024-01-08 18:50:17 +01:00
parent 4c831643b1
commit 36954e5f48
3 changed files with 22 additions and 18 deletions

View file

@ -67,11 +67,10 @@ impl Into<OutMessageMeta> for InMessageMeta {
}
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Debug)]
pub enum SwarmControlMessage {
ConnectionClosed {
info_hash: InfoHash,
peer_id: PeerId,
ip_version: IpVersion,
announced_info_hashes: Vec<(InfoHash, PeerId)>,
},
}