torrust-actix 4.2.15

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
9
10
use crate::tracker::structs::info_hash::InfoHash;
use crate::tracker::structs::torrent_entry::TorrentEntry;
use crate::tracker::types::ahash_map::AHashMap;
use parking_lot::RwLock;
use std::sync::Arc;

#[derive(Debug)]
pub struct TorrentSharding {
    pub shards: [Arc<RwLock<AHashMap<InfoHash, TorrentEntry>>>; 256],
}