Apply sanity to the transport client interface. Convert 'make_join' and 'send_join' to accept iterables of destinations

This commit is contained in:
Erik Johnston 2015-02-04 16:28:12 +00:00
parent 95e2d2d36d
commit ae46f10fc5
6 changed files with 151 additions and 92 deletions

View file

@ -288,7 +288,7 @@ class FederationHandler(BaseHandler):
logger.debug("Joining %s to %s", joinee, room_id)
pdu = yield self.replication_layer.make_join(
target_host,
[target_host],
room_id,
joinee
)
@ -331,7 +331,7 @@ class FederationHandler(BaseHandler):
new_event = builder.build()
ret = yield self.replication_layer.send_join(
target_host,
[target_host],
new_event
)