summary refs log tree commit diff
path: root/synapse/federation/transport/client.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-15 10:36:19 +0100
committerErik Johnston <erik@matrix.org>2016-09-15 10:36:19 +0100
commit5810cffd335f96ac448497e7caf46c5cbf29d6a8 (patch)
treebd9edc96cb470204d1e9245512bacf2ef6430766 /synapse/federation/transport/client.py
parentAllow paginating both forwards and backwards (diff)
downloadsynapse-5810cffd335f96ac448497e7caf46c5cbf29d6a8.tar.xz
Pass since/from parameters over federation
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r--synapse/federation/transport/client.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py
index 2b138526ba..f508b70f11 100644
--- a/synapse/federation/transport/client.py
+++ b/synapse/federation/transport/client.py
@@ -248,12 +248,19 @@ class TransportLayerClient(object):
 
     @defer.inlineCallbacks
     @log_function
-    def get_public_rooms(self, remote_server):
+    def get_public_rooms(self, remote_server, limit, since_token):
         path = PREFIX + "/publicRooms"
 
+        args = {}
+        if limit:
+            args["limit"] = [str(limit)]
+        if since_token:
+            args["since"] = [since_token]
+
         response = yield self.client.get_json(
             destination=remote_server,
             path=path,
+            args=args,
         )
 
         defer.returnValue(response)