summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-18 17:47:06 +0100
committerErik Johnston <erik@matrix.org>2015-06-18 17:47:06 +0100
commit6df6354f1c5814f9f1779ff9984b679454c1e557 (patch)
tree39099716e209c93a9006c61a3f21a578a82dfd75
parentMerge pull request #185 from matrix-org/erikj/listeners_config (diff)
downloadsynapse-6df6354f1c5814f9f1779ff9984b679454c1e557.tar.xz
Don't bother storing things we don't need
-rw-r--r--synapse/storage/events.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 2caf0aae80..f7d5001b6a 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -293,19 +293,19 @@ class EventsStore(SQLBaseStore):
                 txn, event.event_id, context.rejected
             )
 
-        for hash_alg, hash_base64 in event.hashes.items():
-            hash_bytes = decode_base64(hash_base64)
-            self._store_event_content_hash_txn(
-                txn, event.event_id, hash_alg, hash_bytes,
-            )
-
-        for prev_event_id, prev_hashes in event.prev_events:
-            for alg, hash_base64 in prev_hashes.items():
-                hash_bytes = decode_base64(hash_base64)
-                self._store_prev_event_hash_txn(
-                    txn, event.event_id, prev_event_id, alg,
-                    hash_bytes
-                )
+        # for hash_alg, hash_base64 in event.hashes.items():
+        #     hash_bytes = decode_base64(hash_base64)
+        #     self._store_event_content_hash_txn(
+        #         txn, event.event_id, hash_alg, hash_bytes,
+        #     )
+
+        # for prev_event_id, prev_hashes in event.prev_events:
+        #     for alg, hash_base64 in prev_hashes.items():
+        #         hash_bytes = decode_base64(hash_base64)
+        #         self._store_prev_event_hash_txn(
+        #             txn, event.event_id, prev_event_id, alg,
+        #             hash_bytes
+        #         )
 
         self._simple_insert_many_txn(
             txn,