diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-13 16:59:41 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-13 16:59:41 +0100 |
commit | 4071f2965320950c7f1bbdd39105f8c34ca95034 (patch) | |
tree | 2fc19964d13772cd142dcd86d8898fe8805a90c1 /synapse/storage/state.py | |
parent | Typo (diff) | |
download | synapse-4071f2965320950c7f1bbdd39105f8c34ca95034.tar.xz |
Fetch events from events_id in their own transactions
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index a80a947436..483b316e9f 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -85,13 +85,13 @@ class StateStore(SQLBaseStore): @defer.inlineCallbacks def c(vals): - vals[:] = yield self.runInteraction( - "_get_state_groups_ev", - self._fetch_events_txn, vals - ) + vals[:] = yield self._fetch_events(vals, get_prev_content=False) yield defer.gatherResults( - [c(vals) for vals in states.values()], + [ + c(vals) + for vals in states.values() + ], consumeErrors=True, ) |