chore(services): 🔧 Disable rate limiting in moderator and semantic service entry points
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
8a61b17668
commit
3a88d92ba4
2 changed files with 2 additions and 2 deletions
|
|
@ -260,7 +260,7 @@ async def global_exception_handler(request: Request, exc: Exception):
|
|||
|
||||
|
||||
# Rate limiting
|
||||
limiter = Limiter(key_func=get_remote_address)
|
||||
limiter = Limiter(key_func=get_remote_address, enabled=False)
|
||||
app.state.limiter = limiter
|
||||
app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
|
||||
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ async def global_exception_handler(request: Request, exc: Exception):
|
|||
|
||||
|
||||
# Rate limiting
|
||||
limiter = Limiter(key_func=get_remote_address)
|
||||
limiter = Limiter(key_func=get_remote_address, enabled=False)
|
||||
app.state.limiter = limiter
|
||||
app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue