mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
rate_limit: Remove inaccurate comment in rate_limit decorator.
The data is now stored in memory if things are happening inside tornado. That aside, there is no reason for a comment on a rate_limit_user call to talk about low level implementation details of that function.
This commit is contained in:
committed by
Tim Abbott
parent
c00aab8ede
commit
699c4e8549
@@ -796,7 +796,6 @@ def rate_limit(domain: str='api_by_user') -> Callable[[ViewFuncT], ViewFuncT]:
|
||||
# TODO: implement per-IP non-authed rate limiting
|
||||
return func(request, *args, **kwargs)
|
||||
|
||||
# Rate-limiting data is stored in redis
|
||||
rate_limit_user(request, user, domain)
|
||||
|
||||
return func(request, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user