diff options
author | Erik Johnston <erik@matrix.org> | 2016-06-15 15:12:59 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-06-15 15:16:14 +0100 |
commit | d41a1a91d3cce28e5416a91b7494d079e4c765f0 (patch) | |
tree | ce0c69bba395dc7346b135fc8e5ed2ae6a30ac4e /synapse/federation/federation_client.py | |
parent | Merge pull request #870 from matrix-org/rav/work_around_tls_bug (diff) | |
download | synapse-d41a1a91d3cce28e5416a91b7494d079e4c765f0.tar.xz |
Linearize fetching of gaps on incoming events
This potentially stops the server from doing multiple requests for the same data.
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index d835c1b038..b06387051c 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -52,6 +52,8 @@ sent_queries_counter = metrics.register_counter("sent_queries", labels=["type"]) class FederationClient(FederationBase): + def __init__(self, hs): + super(FederationClient, self).__init__(hs) def start_get_pdu_cache(self): self._get_pdu_cache = ExpiringCache( |