use true_fn for startup_netburst option
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
07135cc849
commit
93b03fe338
2 changed files with 2 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -445,6 +445,7 @@ dependencies = [
|
||||||
"ipaddress",
|
"ipaddress",
|
||||||
"itertools 0.12.1",
|
"itertools 0.12.1",
|
||||||
"jsonwebtoken",
|
"jsonwebtoken",
|
||||||
|
"log",
|
||||||
"lru-cache",
|
"lru-cache",
|
||||||
"nix",
|
"nix",
|
||||||
"num_cpus",
|
"num_cpus",
|
||||||
|
|
|
@ -226,7 +226,7 @@ pub struct Config {
|
||||||
#[serde(with = "serde_regex")]
|
#[serde(with = "serde_regex")]
|
||||||
pub forbidden_usernames: RegexSet,
|
pub forbidden_usernames: RegexSet,
|
||||||
|
|
||||||
#[serde(default = "default_startup_netburst")]
|
#[serde(default = "true_fn")]
|
||||||
pub startup_netburst: bool,
|
pub startup_netburst: bool,
|
||||||
|
|
||||||
#[serde(default)]
|
#[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_new_user_displayname_suffix() -> String { "🏳️⚧️".to_owned() }
|
||||||
|
|
||||||
fn default_startup_netburst() -> bool { true }
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue