summary refs log tree commit diff
path: root/synapse/federation/transport/client.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-26 13:52:29 +0000
committerErik Johnston <erik@matrix.org>2016-01-26 13:52:29 +0000
commit9959d9ece84d85dae3ed06b22e3f234575b93fd1 (patch)
treee5d4fd2289abdac72f2a7bf9f0a0dda2e0bb72f5 /synapse/federation/transport/client.py
parentMerge pull request #524 from matrix-org/erikj/sync (diff)
downloadsynapse-9959d9ece84d85dae3ed06b22e3f234575b93fd1.tar.xz
Remove redundated BaseHomeServer
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r--synapse/federation/transport/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py
index 949d01dea8..2b5d40ea7f 100644
--- a/synapse/federation/transport/client.py
+++ b/synapse/federation/transport/client.py
@@ -28,6 +28,10 @@ logger = logging.getLogger(__name__)
 class TransportLayerClient(object):
     """Sends federation HTTP requests to other servers"""
 
+    def __init__(self, hs):
+        self.server_name = hs.hostname
+        self.client = hs.get_http_client()
+
     @log_function
     def get_room_state(self, destination, room_id, event_id):
         """ Requests all state for a given room from the given server at the