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

Commit ecb7b05

Browse files
squahtxH-Shay
authored andcommitted
Reduce default third party invite rate limit to 216 invites per day (#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 <[email protected]>
1 parent 42121f6 commit ecb7b05

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

changelog.d/14487.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reduce default third party invite rate limit to 216 invites per day.

synapse/config/ratelimiting.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,5 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
150150

151151
self.rc_third_party_invite = RatelimitSettings(
152152
config.get("rc_third_party_invite", {}),
153-
defaults={
154-
"per_second": self.rc_message.per_second,
155-
"burst_count": self.rc_message.burst_count,
156-
},
153+
defaults={"per_second": 0.0025, "burst_count": 5},
157154
)

0 commit comments

Comments
 (0)