Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tornado: Remove incorrect rate_limit request note.
Alex Vandiver7ed35845df39
diff --git a/zerver/lib/request.py b/zerver/lib/request.pyindex ca9aa0a446d..303adc9ba26 100644--- a/zerver/lib/request.py+++ b/zerver/lib/request.py@@ -34,7 +34,6 @@ class RequestNotes(BaseNotes[HttpRequest, "RequestNotes"]):client_name: str | None = Noneclient_version: str | None = Nonelog_data: MutableMapping[str, Any] | None = None- rate_limit: str | None = Nonerequester_for_logs: str | None = None# We use realm_cached to indicate whether the realm is cached or not.# Because the default value of realm is None, which can indicate "unset"diff --git a/zerver/tornado/handlers.py b/zerver/tornado/handlers.pyindex 235854d1cdf..826f38dfb2b 100644--- a/zerver/tornado/handlers.py+++ b/zerver/tornado/handlers.py@@ -259,8 +259,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler):# Add to this new HttpRequest logging data from the processing of# the original request; we will need these for logging.request_notes.log_data = old_request_notes.log_data- if request_notes.rate_limit is not None:- request_notes.rate_limit = old_request_notes.rate_limit+ request_notes.ratelimits_applied += old_request_notes.ratelimits_appliedif request_notes.requester_for_logs is not None:request_notes.requester_for_logs = old_request_notes.requester_for_logsrequest.user = old_request.user