refactor(RateLimitConfig): replace magic values with struct method
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ impl From<Application> for RunnableApplication {
|
||||
"Rate limiting disabled (using very high limits)"
|
||||
);
|
||||
// Use very high limits to effectively disable rate limiting
|
||||
RateLimitConfig::new(u32::MAX, 1)
|
||||
RateLimitConfig::disabled()
|
||||
};
|
||||
let frontend_url = value.settings.frontend_url.clone();
|
||||
let cors = if value.settings.debug {
|
||||
|
||||
Reference in New Issue
Block a user