diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 44001d8..74327c9 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -156,6 +156,12 @@ pub struct Config { | |||
| 156 | default_value_t = 604800 | 156 | default_value_t = 604800 |
| 157 | )] | 157 | )] |
| 158 | pub rejected_cold_index_expiry_secs: u64, | 158 | pub rejected_cold_index_expiry_secs: u64, |
| 159 | |||
| 160 | /// Hours before removing relay from naughty list (default: 12) | ||
| 161 | /// Relays with persistent infrastructure issues (DNS, TLS, protocol errors) are | ||
| 162 | /// tracked separately and retried after this expiration period. | ||
| 163 | #[arg(long, env = "NGIT_NAUGHTY_LIST_EXPIRATION_HOURS", default_value_t = 12)] | ||
| 164 | pub naughty_list_expiration_hours: u64, | ||
| 159 | } | 165 | } |
| 160 | 166 | ||
| 161 | impl Config { | 167 | impl Config { |
| @@ -281,6 +287,7 @@ impl Config { | |||
| 281 | sync_disable_negentropy: false, | 287 | sync_disable_negentropy: false, |
| 282 | rejected_hot_cache_duration_secs: 120, | 288 | rejected_hot_cache_duration_secs: 120, |
| 283 | rejected_cold_index_expiry_secs: 604800, | 289 | rejected_cold_index_expiry_secs: 604800, |
| 290 | naughty_list_expiration_hours: 12, | ||
| 284 | } | 291 | } |
| 285 | } | 292 | } |
| 286 | } | 293 | } |