use crateInfoHash;
use crateTorrentEntry;
use RwLock;
use BTreeMap;
use Arc;
/// A fixed array of 256 independently-locked torrent maps.
///
/// Each [`InfoHash`] is routed to a shard by its first byte, so concurrent
/// announce requests for different torrents rarely contend on the same lock.
/// The `parking_lot` [`RwLock`] is used for low-latency read-heavy workloads.
///
/// [`InfoHash`]: crate::tracker::structs::info_hash::InfoHash
/// [`RwLock`]: parking_lot::RwLock