Increase default search rate limit. (#2424)

dont_search_community_description
Dessalines 2022-09-03 05:37:27 -04:00 committed by GitHub
parent 0a14b17747
commit 265dc54627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
comment: 6 comment: 6
# Interval length for comment limit, in seconds # Interval length for comment limit, in seconds
comment_per_second: 600 comment_per_second: 600
search: 6 search: 60
# Interval length for search limit, in seconds # Interval length for search limit, in seconds
search_per_second: 600 search_per_second: 600
} }

View File

@ -190,7 +190,7 @@ pub struct RateLimitConfig {
/// Interval length for comment limit, in seconds /// Interval length for comment limit, in seconds
#[default(600)] #[default(600)]
pub comment_per_second: i32, pub comment_per_second: i32,
#[default(6)] #[default(60)]
pub search: i32, pub search: i32,
/// Interval length for search limit, in seconds /// Interval length for search limit, in seconds
#[default(600)] #[default(600)]