summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-04-20 18:04:40 +0100
committerErik Johnston <erik@matrix.org>2022-04-21 11:49:51 +0100
commit8410021d1f174896ee78cfa31d727a4de1558fde (patch)
treeade8eb539ae77f62c983edafe607cf82ea898b9e
parentMark remote server as up when we can talk to it (diff)
downloadsynapse-github/erikj/krkn.tar.xz
-rw-r--r--synapse/http/matrixfederationclient.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 29d341835a..d839890a20 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -358,9 +358,6 @@ class MatrixFederationHttpClient:
 
         self._sleeper = AwakenableSleeper(self.reactor)
 
-        self._notifier = hs.get_notifier()
-        self._replication_client = hs.get_replication_command_handler()
-
     def wake_destination(self, destination: str) -> None:
         """Called when the remote server may have come back online."""
 
@@ -487,8 +484,8 @@ class MatrixFederationHttpClient:
             self._store,
             backoff_on_404=backoff_on_404,
             ignore_backoff=ignore_backoff,
-            notifier=self._notifier,
-            replication_client=self._replication_client,
+            notifier=self.hs.get_notifier(),
+            replication_client=self.hs.get_replication_command_handler(),
         )
 
         method_bytes = request.method.encode("ascii")