summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-10-28 17:15:32 +0000
committerErik Johnston <erik@matrix.org>2014-10-28 17:15:32 +0000
commita10c2ec88d98abe035a60ab0027c1914d4ad7d77 (patch)
tree06d48e2b51ae5322b845763720648c599174321e /synapse/storage/event_federation.py
parentBegin implementing all the PDU storage stuff in Events land (diff)
downloadsynapse-a10c2ec88d98abe035a60ab0027c1914d4ad7d77.tar.xz
Don't reference PDU when persisting event
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 27ad9aea4d..7688fc550f 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 from ._base import SQLBaseStore
-from twisted.internet import defer
+from syutil.base64util import encode_base64
 
 import logging
 
@@ -36,7 +36,7 @@ class EventFederationStore(SQLBaseStore):
 
         results = []
         for pdu_id, origin, depth in txn.fetchall():
-            hashes = self._get_pdu_reference_hashes_txn(txn, pdu_id, origin)
+            hashes = self._get_prev_event_hashes_txn(txn, pdu_id, origin)
             sha256_bytes = hashes["sha256"]
             prev_hashes = {"sha256": encode_base64(sha256_bytes)}
             results.append((pdu_id, origin, prev_hashes, depth))