summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-08-03 11:40:20 +0200
committerGitHub <noreply@github.com>2022-08-03 10:40:20 +0100
commitd6e94ad9d9b22efe0f5eb64d946c10a542068f7c (patch)
tree16509bc293460876542f97ef67b71aa3bb87c42e /synapse/rest
parentAdd module API method to resolve a room alias to a room ID (#13428) (diff)
downloadsynapse-d6e94ad9d9b22efe0f5eb64d946c10a542068f7c.tar.xz
Rename `RateLimitConfig` to `RatelimitSettings` (#13442)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/register.py b/synapse/rest/client/register.py
index b7ab090bbd..956c45e60a 100644
--- a/synapse/rest/client/register.py
+++ b/synapse/rest/client/register.py
@@ -33,7 +33,7 @@ from synapse.api.ratelimiting import Ratelimiter
 from synapse.config import ConfigError
 from synapse.config.emailconfig import ThreepidBehaviour
 from synapse.config.homeserver import HomeServerConfig
-from synapse.config.ratelimiting import FederationRateLimitConfig
+from synapse.config.ratelimiting import FederationRatelimitSettings
 from synapse.config.server import is_threepid_reserved
 from synapse.handlers.auth import AuthHandler
 from synapse.handlers.ui_auth import UIAuthSessionDataConstants
@@ -325,7 +325,7 @@ class UsernameAvailabilityRestServlet(RestServlet):
         self.registration_handler = hs.get_registration_handler()
         self.ratelimiter = FederationRateLimiter(
             hs.get_clock(),
-            FederationRateLimitConfig(
+            FederationRatelimitSettings(
                 # Time window of 2s
                 window_size=2000,
                 # Artificially delay requests if rate > sleep_limit/window_size