Skip to content
Snippets Groups Projects
Commit e3624fad authored by Erik Johnston's avatar Erik Johnston
Browse files

Remove pointless ratelimit check

The intention was for the check to be called as early as possible in the
request, but actually was called just before the main ratelimit check,
so was fairly pointless.
parent 617199d7
No related branches found
No related tags found
No related merge requests found
......@@ -403,11 +403,6 @@ class EventCreationHandler(object):
"Tried to send member event through non-member codepath"
)
# We check here if we are currently being rate limited, so that we
# don't do unnecessary work. We check again just before we actually
# send the event.
yield self.base_handler.ratelimit(requester, update=False)
user = UserID.from_string(event.sender)
assert self.hs.is_mine(user), "User must be our own: %s" % (user,)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment