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_base.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_base.py')
-rw-r--r-- | synapse/federation/federation_base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py index a0b7cb7963..da2f5e8cfd 100644 --- a/synapse/federation/federation_base.py +++ b/synapse/federation/federation_base.py @@ -31,6 +31,9 @@ logger = logging.getLogger(__name__) class FederationBase(object): + def __init__(self, hs): + pass + @defer.inlineCallbacks def _check_sigs_and_hash_and_fetch(self, origin, pdus, outlier=False, include_none=False): |