mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 17:34:49 -04:00
Comment
This commit is contained in:
parent
550308c7a1
commit
f2f74ffce6
1 changed files with 3 additions and 0 deletions
|
@ -239,6 +239,9 @@ class MessageHandler(BaseHandler):
|
||||||
"Tried to send member event through non-member codepath"
|
"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.
|
||||||
time_now = self.clock.time()
|
time_now = self.clock.time()
|
||||||
allowed, time_allowed = self.ratelimiter.send_message(
|
allowed, time_allowed = self.ratelimiter.send_message(
|
||||||
event.sender, time_now,
|
event.sender, time_now,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue