]> Untitled Git - lemmy.git/commitdiff
Increase default search rate limit. (#2424)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 3 Sep 2022 09:37:27 +0000 (05:37 -0400)
committerGitHub <noreply@github.com>
Sat, 3 Sep 2022 09:37:27 +0000 (11:37 +0200)
config/defaults.hjson
crates/utils/src/settings/structs.rs

index 9e405407a57e21cdc028bd31d92f196229deeb5d..b4e1e3dfccb8e1f08e266331bd1c387519a9727e 100644 (file)
@@ -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
   }
index ecf19aaffbe871af1df0b05f8e7cd3d43a25bd44..28dcb5c59f9a9fffac88abb0b86679083073360f 100644 (file)
@@ -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)]