mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_ws: clean torrent state periodically
This commit is contained in:
parent
de06931242
commit
7c9ecda53a
5 changed files with 41 additions and 11 deletions
|
|
@ -82,6 +82,7 @@ impl Default for TorrentData {
|
|||
pub type TorrentMap = HashMap<InfoHash, TorrentData>;
|
||||
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct State {
|
||||
pub torrents: Arc<Mutex<TorrentMap>>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue