torrust-actix 4.2.3

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::sync::atomic::AtomicU64;

/// Counters populated during a single peer-cleanup pass.
///
/// After each cleanup run the counts are logged to the console and then
/// reset to zero in preparation for the next interval.
pub struct CleanupStats {
    /// Number of torrents whose peer maps were inspected.
    pub torrents: AtomicU64,
    /// Number of timed-out seed entries removed.
    pub seeds: AtomicU64,
    /// Number of timed-out peer entries removed.
    pub peers: AtomicU64,
}