diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-03-24 17:47:31 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-03-24 17:47:31 +0000 |
commit | 191c7bef6bbb80f66f66e95387940c3bb6b5a0cf (patch) | |
tree | fd991d6405b39ec90701c0b679c54aa8ad7e1939 /synapse/rest | |
parent | Merge pull request #667 from matrix-org/dbkr/never_notify_member_events (diff) | |
download | synapse-191c7bef6bbb80f66f66e95387940c3bb6b5a0cf.tar.xz |
Deduplicate identical /sync requests
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v2_alpha/sync.py | 3 |
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: |