From e16ec8f804342061d16c44f923b2993bb8603514 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 20 Apr 2022 17:59:16 +0100 Subject: Mark remote server as up when we can talk to it --- synapse/http/matrixfederationclient.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'synapse/http/matrixfederationclient.py') diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index df99c53041..29d341835a 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -358,6 +358,9 @@ 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.""" @@ -484,6 +487,8 @@ class MatrixFederationHttpClient: self._store, backoff_on_404=backoff_on_404, ignore_backoff=ignore_backoff, + notifier=self._notifier, + replication_client=self._replication_client, ) method_bytes = request.method.encode("ascii") -- cgit 1.5.1