s/replication_server/federation_server

This commit is contained in:
Erik Johnston 2018-03-13 13:22:21 +00:00
parent ea7b3c4b1b
commit cea462e285
3 changed files with 4 additions and 4 deletions

View File

@ -1190,7 +1190,7 @@ GROUP_ATTESTATION_SERVLET_CLASSES = (
def register_servlets(hs, resource, authenticator, ratelimiter): def register_servlets(hs, resource, authenticator, ratelimiter):
for servletclass in FEDERATION_SERVLET_CLASSES: for servletclass in FEDERATION_SERVLET_CLASSES:
servletclass( servletclass(
handler=hs.get_replication_server(), handler=hs.get_federation_server(),
authenticator=authenticator, authenticator=authenticator,
ratelimiter=ratelimiter, ratelimiter=ratelimiter,
server_name=hs.hostname, server_name=hs.hostname,

View File

@ -102,7 +102,7 @@ class HomeServer(object):
'http_client', 'http_client',
'db_pool', 'db_pool',
'replication_client', 'replication_client',
'replication_server', 'federation_server',
'handlers', 'handlers',
'v1auth', 'v1auth',
'auth', 'auth',
@ -202,7 +202,7 @@ class HomeServer(object):
def build_replication_client(self): def build_replication_client(self):
return FederationClient(self) return FederationClient(self)
def build_replication_server(self): def build_federation_server(self):
return FederationServer(self) return FederationServer(self)
def build_handlers(self): def build_handlers(self):

View File

@ -52,7 +52,7 @@ class ProfileTestCase(unittest.TestCase):
handlers=None, handlers=None,
resource_for_federation=Mock(), resource_for_federation=Mock(),
replication_client=self.mock_federation, replication_client=self.mock_federation,
replication_server=Mock(), federation_server=Mock(),
federation_registry=self.mock_registry, federation_registry=self.mock_registry,
ratelimiter=NonCallableMock(spec_set=[ ratelimiter=NonCallableMock(spec_set=[
"send_message", "send_message",