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
+2
-2
@@ -91,8 +91,7 @@ async fn _main() -> miette::Result<()> {
|
||||
disable_health_checks,
|
||||
)
|
||||
.await
|
||||
.into_diagnostic()
|
||||
.wrap_err("Failed starting background scanner")?;
|
||||
.wrap_err("Crash starting background scanner")?;
|
||||
|
||||
let addr = std::net::SocketAddr::from(([127, 0, 0, 1], port));
|
||||
server::start(&addr, pool, server_config, scanner_config, cache)
|
||||
@@ -157,6 +156,7 @@ fn read_scanner_cfg() -> miette::Result<ScannerConfig> {
|
||||
bad_hosts,
|
||||
cleanup_interval: Duration::from_secs(cleanup_interval),
|
||||
error_retention_per_host,
|
||||
connectivity_path: String::from("/"),
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user