mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp: config: remove connection_cleaning_interval
This commit is contained in:
parent
cbcb627772
commit
059ef495bf
1 changed files with 1 additions and 4 deletions
|
|
@ -163,8 +163,6 @@ impl Default for StatisticsConfig {
|
||||||
#[derive(Clone, Debug, PartialEq, TomlConfig, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, TomlConfig, Deserialize)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct CleaningConfig {
|
pub struct CleaningConfig {
|
||||||
/// Clean connections this often (seconds)
|
|
||||||
pub connection_cleaning_interval: u64,
|
|
||||||
/// Clean torrents this often (seconds)
|
/// Clean torrents this often (seconds)
|
||||||
pub torrent_cleaning_interval: u64,
|
pub torrent_cleaning_interval: u64,
|
||||||
/// Clean pending scrape responses this often (seconds)
|
/// Clean pending scrape responses this often (seconds)
|
||||||
|
|
@ -173,7 +171,7 @@ pub struct CleaningConfig {
|
||||||
/// lingering for a long time. However, the cleaning also returns unused
|
/// lingering for a long time. However, the cleaning also returns unused
|
||||||
/// allocated memory to the OS, so the interval can be configured here.
|
/// allocated memory to the OS, so the interval can be configured here.
|
||||||
pub pending_scrape_cleaning_interval: u64,
|
pub pending_scrape_cleaning_interval: u64,
|
||||||
/// Remove connections that are older than this (seconds)
|
/// Maximum time to use a connection token before it expires (seconds)
|
||||||
pub max_connection_age: u64,
|
pub max_connection_age: u64,
|
||||||
/// Remove peers who have not announced for this long (seconds)
|
/// Remove peers who have not announced for this long (seconds)
|
||||||
pub max_peer_age: u64,
|
pub max_peer_age: u64,
|
||||||
|
|
@ -185,7 +183,6 @@ pub struct CleaningConfig {
|
||||||
impl Default for CleaningConfig {
|
impl Default for CleaningConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
connection_cleaning_interval: 60,
|
|
||||||
torrent_cleaning_interval: 60 * 2,
|
torrent_cleaning_interval: 60 * 2,
|
||||||
pending_scrape_cleaning_interval: 60 * 10,
|
pending_scrape_cleaning_interval: 60 * 10,
|
||||||
max_connection_age: 60 * 2,
|
max_connection_age: 60 * 2,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue