mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
s/replication_server/federation_server
This commit is contained in:
parent
ea7b3c4b1b
commit
cea462e285
@ -1190,7 +1190,7 @@ GROUP_ATTESTATION_SERVLET_CLASSES = (
|
||||
def register_servlets(hs, resource, authenticator, ratelimiter):
|
||||
for servletclass in FEDERATION_SERVLET_CLASSES:
|
||||
servletclass(
|
||||
handler=hs.get_replication_server(),
|
||||
handler=hs.get_federation_server(),
|
||||
authenticator=authenticator,
|
||||
ratelimiter=ratelimiter,
|
||||
server_name=hs.hostname,
|
||||
|
@ -102,7 +102,7 @@ class HomeServer(object):
|
||||
'http_client',
|
||||
'db_pool',
|
||||
'replication_client',
|
||||
'replication_server',
|
||||
'federation_server',
|
||||
'handlers',
|
||||
'v1auth',
|
||||
'auth',
|
||||
@ -202,7 +202,7 @@ class HomeServer(object):
|
||||
def build_replication_client(self):
|
||||
return FederationClient(self)
|
||||
|
||||
def build_replication_server(self):
|
||||
def build_federation_server(self):
|
||||
return FederationServer(self)
|
||||
|
||||
def build_handlers(self):
|
||||
|
@ -52,7 +52,7 @@ class ProfileTestCase(unittest.TestCase):
|
||||
handlers=None,
|
||||
resource_for_federation=Mock(),
|
||||
replication_client=self.mock_federation,
|
||||
replication_server=Mock(),
|
||||
federation_server=Mock(),
|
||||
federation_registry=self.mock_registry,
|
||||
ratelimiter=NonCallableMock(spec_set=[
|
||||
"send_message",
|
||||
|
Loading…
Reference in New Issue
Block a user