Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

rate_limit: Remove inaccurate comment in rate_limit decorator.

Mateusz Mandera699c4e854908
diff --git a/zerver/decorator.py b/zerver/decorator.py
index 24990a8a1aa..bf9a4f10dfe 100644
--- a/zerver/decorator.py
+++ b/zerver/decorator.py
@@ -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)