summary refs log tree commit diff
path: root/synapse/server_notices
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2022-06-14 10:51:15 +0200
committerGitHub <noreply@github.com>2022-06-14 09:51:15 +0100
commit92103cb2c8b8bff6b522a7bfa8a3a776b4821b11 (patch)
tree644b933f8bc9c80d39adda432529340d0d865d1c /synapse/server_notices
parentUniformize spam-checker API, part 4: port other spam-checker callbacks to ret... (diff)
downloadsynapse-92103cb2c8b8bff6b522a7bfa8a3a776b4821b11.tar.xz
Decouple `synapse.api.auth_blocking.AuthBlocking` from `synapse.api.auth.Auth`. (#13021)
Diffstat (limited to 'synapse/server_notices')
-rw-r--r--synapse/server_notices/resource_limits_server_notices.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server_notices/resource_limits_server_notices.py b/synapse/server_notices/resource_limits_server_notices.py
index 6863020778..3134cd2d3d 100644
--- a/synapse/server_notices/resource_limits_server_notices.py
+++ b/synapse/server_notices/resource_limits_server_notices.py
@@ -37,7 +37,7 @@ class ResourceLimitsServerNotices:
         self._server_notices_manager = hs.get_server_notices_manager()
         self._store = hs.get_datastores().main
         self._storage_controllers = hs.get_storage_controllers()
-        self._auth = hs.get_auth()
+        self._auth_blocking = hs.get_auth_blocking()
         self._config = hs.config
         self._resouce_limited = False
         self._account_data_handler = hs.get_account_data_handler()
@@ -91,7 +91,7 @@ class ResourceLimitsServerNotices:
             # Normally should always pass in user_id to check_auth_blocking
             # if you have it, but in this case are checking what would happen
             # to other users if they were to arrive.
-            await self._auth.check_auth_blocking()
+            await self._auth_blocking.check_auth_blocking()
         except ResourceLimitError as e:
             limit_msg = e.msg
             limit_type = e.limit_type