mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_private: remove connection cleaning config vars
This commit is contained in:
parent
11cba4eb12
commit
fa5e609f11
1 changed files with 0 additions and 6 deletions
|
|
@ -93,21 +93,15 @@ impl Default for ProtocolConfig {
|
||||||
pub struct CleaningConfig {
|
pub struct CleaningConfig {
|
||||||
/// Clean peers this often (seconds)
|
/// Clean peers this often (seconds)
|
||||||
pub torrent_cleaning_interval: u64,
|
pub torrent_cleaning_interval: u64,
|
||||||
/// Clean connections this often (seconds)
|
|
||||||
pub connection_cleaning_interval: u64,
|
|
||||||
/// Remove peers that have not announced for this long (seconds)
|
/// Remove peers that have not announced for this long (seconds)
|
||||||
pub max_peer_age: u64,
|
pub max_peer_age: u64,
|
||||||
/// Remove connections that haven't seen valid requests for this long (seconds)
|
|
||||||
pub max_connection_idle: u64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for CleaningConfig {
|
impl Default for CleaningConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
torrent_cleaning_interval: 30,
|
torrent_cleaning_interval: 30,
|
||||||
connection_cleaning_interval: 60,
|
|
||||||
max_peer_age: 360,
|
max_peer_age: 360,
|
||||||
max_connection_idle: 180,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue