mirror of
https://github.com/telemt/telemt.git
synced 2026-09-18 08:18:31 +03:00
Hardened listener reload + config persistence + SYN Limit startup safety
This commit is contained in:
@@ -8,7 +8,7 @@ async fn config_file() -> (tempfile::TempDir, PathBuf, String) {
|
||||
config.server.max_connections = 4_242;
|
||||
let body = toml::to_string_pretty(&config).unwrap();
|
||||
tokio::fs::write(&path, &body).await.unwrap();
|
||||
let revision = config_store::compute_revision(&body);
|
||||
let revision = config_store::current_revision(&path).await.unwrap();
|
||||
(directory, path, revision)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user