summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-03 15:31:09 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-06 13:45:33 +0000
commit5a047816434e2ce2df8b80eb63a49c17dc3085fb (patch)
tree507d8e321ce50c13598c3dccd2123cbb9bf093a3 /synapse/storage
parentFix power levels being incorrectly set in old and new rooms after a room upgr... (diff)
downloadsynapse-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')
-rw-r--r--synapse/storage/data_stores/main/event_federation.py5
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.