summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-20 16:05:09 +0000
committerDavid Baker <dave@matrix.org>2016-01-20 16:05:09 +0000
commit367cfab4e633c892e0d662e3abcd8e1a9c7f2daf (patch)
tree3161b2cc21a17bbc00b423a3477956d95f2faefc /synapse/storage
parentAdd index by user id on receipts_linearized (diff)
downloadsynapse-367cfab4e633c892e0d662e3abcd8e1a9c7f2daf.tar.xz
peppate
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/receipts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py
index 018140f47a..c4232bdc65 100644
--- a/synapse/storage/receipts.py
+++ b/synapse/storage/receipts.py
@@ -57,7 +57,7 @@ class ReceiptsStore(SQLBaseStore):
             return txn.fetchall()
 
         defer.returnValue(dict(
-                (yield self.runInteraction("get_receipts_for_user", f))
+            (yield self.runInteraction("get_receipts_for_user", f))
         ))
 
     @defer.inlineCallbacks
@@ -212,7 +212,7 @@ class ReceiptsStore(SQLBaseStore):
     def insert_linearized_receipt_txn(self, txn, room_id, receipt_type,
                                       user_id, event_id, data, stream_id):
         txn.call_after(
-                self.get_receipts_for_room.invalidate, (room_id, receipt_type)
+            self.get_receipts_for_room.invalidate, (room_id, receipt_type)
         )
         txn.call_after(
             self.get_receipts_for_user.invalidate, (user_id, receipt_type)
@@ -348,7 +348,6 @@ class ReceiptsStore(SQLBaseStore):
         # FIXME: This shouldn't invalidate the whole cache
         txn.call_after(self.get_linearized_receipts_for_room.invalidate_all)
 
-
         self._simple_delete_txn(
             txn,
             table="receipts_graph",