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):
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,

View File

@ -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):

View File

@ -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",