summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-30 10:30:05 +0100
committerErik Johnston <erik@matrix.org>2017-03-30 10:30:05 +0100
commit30348c924cc177c0cb84d1efd0be0906ac972809 (patch)
tree6b98235c21db9ed9a30ccebcde5c259ed9ac882e /synapse
parentsynctl.py: wait for synapse to stop before restarting (#2020) (diff)
downloadsynapse-30348c924cc177c0cb84d1efd0be0906ac972809.tar.xz
Use txn.fetchall() so we can reuse txn
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 43b5b49986..519059c306 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -152,7 +152,7 @@ class EventFederationStore(SQLBaseStore):
         txn.execute(sql, (room_id, ))
 
         results = []
-        for event_id, depth in txn:
+        for event_id, depth in txn.fetchall():
             hashes = self._get_event_reference_hashes_txn(txn, event_id)
             prev_hashes = {
                 k: encode_base64(v) for k, v in hashes.items()