From: Dessalines Date: Sat, 3 Sep 2022 09:37:27 +0000 (-0400) Subject: Increase default search rate limit. (#2424) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/README.md?a=commitdiff_plain;h=265dc54627462bba62aad76bfb4cec3e002bdfba;p=lemmy.git Increase default search rate limit. (#2424) --- diff --git a/config/defaults.hjson b/config/defaults.hjson index 9e405407..b4e1e3df 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -36,7 +36,7 @@ comment: 6 # Interval length for comment limit, in seconds comment_per_second: 600 - search: 6 + search: 60 # Interval length for search limit, in seconds search_per_second: 600 } diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index ecf19aaf..28dcb5c5 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -190,7 +190,7 @@ pub struct RateLimitConfig { /// Interval length for comment limit, in seconds #[default(600)] pub comment_per_second: i32, - #[default(6)] + #[default(60)] pub search: i32, /// Interval length for search limit, in seconds #[default(600)]