Skip to content

Commit

Permalink
Lowering search rate limit. Fixes #2153
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Mar 24, 2022
1 parent cb44b14 commit e80005c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) {
)
.service(
web::resource("/search")
.wrap(rate_limit.message())
.wrap(rate_limit.comment())
.route(web::get().to(route_get::<Search>)),
)
.service(
Expand Down

0 comments on commit e80005c

Please sign in to comment.