summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-24 17:47:31 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-24 17:47:31 +0000
commit191c7bef6bbb80f66f66e95387940c3bb6b5a0cf (patch)
treefd991d6405b39ec90701c0b679c54aa8ad7e1939 /synapse/rest/client
parentMerge pull request #667 from matrix-org/dbkr/never_notify_member_events (diff)
downloadsynapse-191c7bef6bbb80f66f66e95387940c3bb6b5a0cf.tar.xz
Deduplicate identical /sync requests
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/sync.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py
index de4a020ad4..c5785d7074 100644
--- a/synapse/rest/client/v2_alpha/sync.py
+++ b/synapse/rest/client/v2_alpha/sync.py
@@ -115,6 +115,8 @@ class SyncRestServlet(RestServlet):
             )
         )
 
+        request_key = (user, timeout, since, filter_id, full_state)
+
         if filter_id:
             if filter_id.startswith('{'):
                 try:
@@ -134,6 +136,7 @@ class SyncRestServlet(RestServlet):
             user=user,
             filter_collection=filter,
             is_guest=requester.is_guest,
+            request_key=request_key,
         )
 
         if since is not None: