diff --git a/url_finder/src/routes.rs b/url_finder/src/routes.rs index 40f4145..6e746aa 100644 --- a/url_finder/src/routes.rs +++ b/url_finder/src/routes.rs @@ -32,8 +32,8 @@ pub fn create_routes() -> Router> { // more strict rate limiting for the sync routes let governor_secure = Arc::new( GovernorConfigBuilder::default() - .per_second(4) - .burst_size(2) + .per_second(30) + .burst_size(30) .key_extractor(SmartIpKeyExtractor) .error_handler(too_many_requests_error_handler) .finish() @@ -43,7 +43,7 @@ pub fn create_routes() -> Router> { // less strict rate limiting for the async routes that will have internal queue anyway let governor_async = Arc::new( GovernorConfigBuilder::default() - .per_second(1) + .per_second(30) .burst_size(10) .key_extractor(SmartIpKeyExtractor) .error_handler(too_many_requests_error_handler)