From 93b03fe3383abf16216e7db8bf98e438c46c3c3e Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 29 Mar 2024 16:39:48 -0400 Subject: [PATCH] use true_fn for startup_netburst option Signed-off-by: strawberry --- Cargo.lock | 1 + src/config/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07e7140a..238776a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -445,6 +445,7 @@ dependencies = [ "ipaddress", "itertools 0.12.1", "jsonwebtoken", + "log", "lru-cache", "nix", "num_cpus", diff --git a/src/config/mod.rs b/src/config/mod.rs index cc5f088a..67aa037a 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -226,7 +226,7 @@ pub struct Config { #[serde(with = "serde_regex")] pub forbidden_usernames: RegexSet, - #[serde(default = "default_startup_netburst")] + #[serde(default = "true_fn")] pub startup_netburst: bool, #[serde(default)] @@ -679,5 +679,3 @@ fn default_url_preview_max_spider_size() -> usize { } fn default_new_user_displayname_suffix() -> String { "🏳️‍⚧️".to_owned() } - -fn default_startup_netburst() -> bool { true }