summary refs log tree commit diff
path: root/synapse/storage/feedback.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-26 14:31:48 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-26 14:36:03 +0100
commit4b2ad549d5a1dcf5c05f890c0383626d6c042fd0 (patch)
tree8aec582555ff9c4551cfd50c3808ab6f313ac4bf /synapse/storage/feedback.py
parentTake a snapshot of the state of the room before performing updates (diff)
downloadsynapse-4b2ad549d5a1dcf5c05f890c0383626d6c042fd0.tar.xz
Move the event storage into a single transaction
Diffstat (limited to 'synapse/storage/feedback.py')
-rw-r--r--synapse/storage/feedback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/feedback.py b/synapse/storage/feedback.py
index e60f98d1e1..d2d1e1d1e8 100644
--- a/synapse/storage/feedback.py
+++ b/synapse/storage/feedback.py
@@ -24,8 +24,8 @@ import json
 
 class FeedbackStore(SQLBaseStore):
 
-    def _store_feedback(self, event):
-        return self._simple_insert("feedback", {
+    def _store_feedback_txn(self, txn, event):
+        self._simple_insert_txn(txn, "feedback", {
             "event_id": event.event_id,
             "feedback_type": event.feedback_type,
             "room_id": event.room_id,