diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-10-06 15:44:30 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-10-06 16:01:33 +0100 |
commit | d6aebf651f88b8f453d94e3cc92c0413e0bb2e5f (patch) | |
tree | 4ce7c687b72d1ba8b8cff9a5b9cd62cb1d525968 /synapse/storage | |
parent | Add txn to get partial room prev_event candidates (diff) | |
download | synapse-d6aebf651f88b8f453d94e3cc92c0413e0bb2e5f.tar.xz |
Rename get_prev_events_for_room to get_prev_events_for_full_state_room
I first considered calling it `get_forward_extremities` but that's misleading since it only gets 10 of them maximum.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/event_federation.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/event_federation.py b/synapse/storage/databases/main/event_federation.py index 436463046d..7aae0ceb48 100644 --- a/synapse/storage/databases/main/event_federation.py +++ b/synapse/storage/databases/main/event_federation.py @@ -1074,14 +1074,15 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas Returns: The event ids of the forward extremities. - """ return await self.db_pool.runInteraction( - "get_prev_events_for_room", self._get_prev_events_for_room_txn, room_id + "get_prev_events_for_full_state_room", + self._get_prev_events_for_full_state_room_txn, + room_id, ) - def _get_prev_events_for_room_txn( + def _get_prev_events_for_full_state_room_txn( self, txn: LoggingTransaction, room_id: str ) -> List[str]: # we just use the 10 newest events. Older events will become |