aquatic_ws: clean torrent state periodically

This commit is contained in:
Joakim Frostegård 2020-05-12 15:45:28 +02:00
parent de06931242
commit 7c9ecda53a
5 changed files with 41 additions and 11 deletions

View file

@ -49,7 +49,7 @@ pub struct HandlerConfig {
#[serde(default)]
pub struct CleaningConfig {
/// Clean peers this often (seconds)
pub interval: u64, // FIXME: implement
pub interval: u64,
/// Remove peers that haven't announced for this long (seconds)
pub max_peer_age: u64,
/// Remove connections that are older than this (seconds)