refactor(RateLimitConfig): replace magic values with struct method

This commit is contained in:
2026-06-02 01:04:24 +02:00
parent 85621d9364
commit b29a095a38
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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 {