summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-21 16:10:37 +0000
committerErik Johnston <erik@matrix.org>2016-01-21 16:10:37 +0000
commit0e07f2e15de196076d75784f44624861b971f8e7 (patch)
tree1adb7c723ec3799317f099b5d7c28ffd35192e3d /synapse/push
parentMerge pull request #516 from matrix-org/erikj/push_perf (diff)
downloadsynapse-0e07f2e15de196076d75784f44624861b971f8e7.tar.xz
Only fetch events for rooms and receipts
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index bbfe9b8a50..e6a28bd8c0 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -126,7 +126,8 @@ class Pusher(object):
         config = PaginationConfig(from_token=from_tok, limit='1')
         timeout = (300 + random.randint(-60, 60)) * 1000
         chunk = yield self.evStreamHandler.get_stream(
-            self.user_id, config, timeout=timeout, affect_presence=False
+            self.user_id, config, timeout=timeout, affect_presence=False,
+            only_keys=("room", "receipt",),
         )
 
         # limiting to 1 may get 1 event plus 1 presence event, so