mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 08:44:07 -04:00
Fetch events from events_id in their own transactions
This commit is contained in:
parent
a988361aea
commit
4071f29653
3 changed files with 168 additions and 18 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue