mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
rate limit instance update, better startup errors, reorganize list fetching, report connectivity check in about
This commit is contained in:
1 parent
ff3a519a6e
commit
2d0b7140a3
8 files changed
+268
-224
No files matched your search
@@ -41,6 +41,8 @@ pub struct Config {
|
||||
pub cleanup_interval: Duration,
|
||||
/// Amount of latest errors to keep per instance/host
|
||||
pub error_retention_per_host: usize,
|
||||
/// Path for connectivity checks
|
||||
pub connectivity_path: String,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -65,6 +67,7 @@ impl Config {
|
||||
bad_hosts: vec![String::from("tweet.whateveritworks.org")],
|
||||
cleanup_interval: Duration::from_secs(24*60*60),
|
||||
error_retention_per_host: 100,
|
||||
connectivity_path: String::from("/"),
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user