diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-01-03 15:31:09 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-01-06 13:45:33 +0000 |
commit | 5a047816434e2ce2df8b80eb63a49c17dc3085fb (patch) | |
tree | 507d8e321ce50c13598c3dccd2123cbb9bf093a3 /synapse/storage/data_stores | |
parent | Fix power levels being incorrectly set in old and new rooms after a room upgr... (diff) | |
download | synapse-5a047816434e2ce2df8b80eb63a49c17dc3085fb.tar.xz |
rename get_prev_events_for_room to get_prev_events_and_hashes_for_room
... to make way for a new method which just returns the event ids
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r-- | synapse/storage/data_stores/main/event_federation.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/data_stores/main/event_federation.py b/synapse/storage/data_stores/main/event_federation.py index 1f517e8fad..266fc9715f 100644 --- a/synapse/storage/data_stores/main/event_federation.py +++ b/synapse/storage/data_stores/main/event_federation.py @@ -149,9 +149,10 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas ) @defer.inlineCallbacks - def get_prev_events_for_room(self, room_id): + def get_prev_events_and_hashes_for_room(self, room_id): """ - Gets a subset of the current forward extremities in the given room. + Gets a subset of the current forward extremities in the given room, + along with their depths and hashes. Limits the result to 10 extremities, so that we can avoid creating events which refer to hundreds of prev_events. |