From 265dc54627462bba62aad76bfb4cec3e002bdfba Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 3 Sep 2022 05:37:27 -0400 Subject: [PATCH] Increase default search rate limit. (#2424) --- config/defaults.hjson | 2 +- crates/utils/src/settings/structs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/defaults.hjson b/config/defaults.hjson index 9e405407a..b4e1e3dfc 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 ecf19aaff..28dcb5c59 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)]