summary refs log tree commit diff
path: root/synapse/util
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/util
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/util')
-rw-r--r--synapse/util/ratelimitutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/util/ratelimitutils.py b/synapse/util/ratelimitutils.py
index dfe628c97e..6394cc39ac 100644
--- a/synapse/util/ratelimitutils.py
+++ b/synapse/util/ratelimitutils.py
@@ -21,7 +21,7 @@ from typing import Any, DefaultDict, Iterator, List, Set
 from twisted.internet import defer
 
 from synapse.api.errors import LimitExceededError
-from synapse.config.ratelimiting import FederationRateLimitConfig
+from synapse.config.ratelimiting import FederationRatelimitSettings
 from synapse.logging.context import (
     PreserveLoggingContext,
     make_deferred_yieldable,
@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
 
 
 class FederationRateLimiter:
-    def __init__(self, clock: Clock, config: FederationRateLimitConfig):
+    def __init__(self, clock: Clock, config: FederationRatelimitSettings):
         def new_limiter() -> "_PerHostRatelimiter":
             return _PerHostRatelimiter(clock=clock, config=config)
 
@@ -63,7 +63,7 @@ class FederationRateLimiter:
 
 
 class _PerHostRatelimiter:
-    def __init__(self, clock: Clock, config: FederationRateLimitConfig):
+    def __init__(self, clock: Clock, config: FederationRatelimitSettings):
         """
         Args:
             clock