mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-27 20:52:30 +00:00
Use _get_events_txn instead of _parse_events_txn
This commit is contained in:
parent
21cab3a7ec
commit
dec5b62339
@ -42,13 +42,7 @@ class EventFederationStore(SQLBaseStore):
|
|||||||
def _get_auth_chain_txn(self, txn, event_ids):
|
def _get_auth_chain_txn(self, txn, event_ids):
|
||||||
results = self._get_auth_chain_ids_txn(txn, event_ids)
|
results = self._get_auth_chain_ids_txn(txn, event_ids)
|
||||||
|
|
||||||
sql = "SELECT * FROM events WHERE event_id = ?"
|
return self._get_events_txn(txn, results)
|
||||||
rows = []
|
|
||||||
for ev_id in results:
|
|
||||||
c = txn.execute(sql, (ev_id,))
|
|
||||||
rows.extend(self.cursor_to_dict(c))
|
|
||||||
|
|
||||||
return self._parse_events_txn(txn, rows)
|
|
||||||
|
|
||||||
def get_auth_chain_ids(self, event_ids):
|
def get_auth_chain_ids(self, event_ids):
|
||||||
return self.runInteraction(
|
return self.runInteraction(
|
||||||
|
Loading…
Reference in New Issue
Block a user