diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-30 10:30:05 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-30 10:30:05 +0100 |
commit | 30348c924cc177c0cb84d1efd0be0906ac972809 (patch) | |
tree | 6b98235c21db9ed9a30ccebcde5c259ed9ac882e | |
parent | synctl.py: wait for synapse to stop before restarting (#2020) (diff) | |
download | synapse-30348c924cc177c0cb84d1efd0be0906ac972809.tar.xz |
Use txn.fetchall() so we can reuse txn
-rw-r--r-- | synapse/storage/event_federation.py | 2 |
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() |