Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Reduce default third party invite rate limit to 216 invites per day (#…
Browse files Browse the repository at this point in the history
…14487)

The previous default was the same as the `rc_message` rate limit, which
defaults to 17,280 per day.

Signed-off-by: Sean Quah <seanq@matrix.org>
  • Loading branch information
squahtx authored and H-Shay committed Dec 13, 2022
1 parent 42121f6 commit ecb7b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/14487.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reduce default third party invite rate limit to 216 invites per day.
5 changes: 1 addition & 4 deletions synapse/config/ratelimiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,5 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:

self.rc_third_party_invite = RatelimitSettings(
config.get("rc_third_party_invite", {}),
defaults={
"per_second": self.rc_message.per_second,
"burst_count": self.rc_message.burst_count,
},
defaults={"per_second": 0.0025, "burst_count": 5},
)

0 comments on commit ecb7b05

Please sign in to comment.