summary refs log tree commit diff
path: root/synapse/federation/federation_base.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-03-13 11:45:25 +0000
committerGitHub <noreply@github.com>2018-03-13 11:45:25 +0000
commit9a2d9b478966ff065cfdca9f595cb2d3012a6d22 (patch)
tree21b127372eae5fae7508e38aa9ca55d94e4c36cc /synapse/federation/federation_base.py
parentMerge pull request #2976 from matrix-org/erikj/replication_registry (diff)
parentMove property setting from ReplicationLayer to FederationBase (diff)
downloadsynapse-9a2d9b478966ff065cfdca9f595cb2d3012a6d22.tar.xz
Merge pull request #2977 from matrix-org/erikj/replication_move_props
Move property setting from ReplicationLayer to base classes
Diffstat (limited to 'synapse/federation/federation_base.py')
-rw-r--r--synapse/federation/federation_base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py
index 7918d3e442..79eaa31031 100644
--- a/synapse/federation/federation_base.py
+++ b/synapse/federation/federation_base.py
@@ -27,7 +27,13 @@ logger = logging.getLogger(__name__)
 
 class FederationBase(object):
     def __init__(self, hs):
+        self.hs = hs
+
+        self.server_name = hs.hostname
+        self.keyring = hs.get_keyring()
         self.spam_checker = hs.get_spam_checker()
+        self.store = hs.get_datastore()
+        self._clock = hs.get_clock()
 
     @defer.inlineCallbacks
     def _check_sigs_and_hash_and_fetch(self, origin, pdus, outlier=False,