mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 01:40:07 -04:00
Move property setting from ReplicationLayer to FederationBase
This commit is contained in:
parent
631a73f7ef
commit
e05bf34117
4 changed files with 13 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue