diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-27 17:36:31 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-27 17:36:31 +0000 |
commit | 561088000306db787c1b924fa33e704665a795be (patch) | |
tree | 36d3f03438ceea8ddf22c461af408b8e7140c3d1 /synapse/federation/transport/client.py | |
parent | Merge pull request #533 from matrix-org/rav/hashtest_federation (diff) | |
parent | Don't turn on profiling (diff) | |
download | synapse-561088000306db787c1b924fa33e704665a795be.tar.xz |
Merge pull request #530 from matrix-org/erikj/server_refactor
Remove redundant BaseHomeServer
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 4 |
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 |