diff options
author | Erik Johnston <erik@matrix.org> | 2019-05-14 13:37:44 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-05-14 13:37:44 +0100 |
commit | 4fb44fb5b9f0043ab7bfbc0aa7251c92680cc639 (patch) | |
tree | f0c410c0e3da25af7af1cbef5c5ca5eaff493262 /synapse/storage/search.py | |
parent | Migrate all tests to use the dict-based config format instead of hanging item... (diff) | |
download | synapse-4fb44fb5b9f0043ab7bfbc0aa7251c92680cc639.tar.xz |
Expose DataStore._get_events as get_events_as_list
This is in preparation for reaction work which requires it.
Diffstat (limited to 'synapse/storage/search.py')
-rw-r--r-- | synapse/storage/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py index 226f8f1b7e..ff49eaae02 100644 --- a/synapse/storage/search.py +++ b/synapse/storage/search.py @@ -460,7 +460,7 @@ class SearchStore(BackgroundUpdateStore): results = list(filter(lambda row: row["room_id"] in room_ids, results)) - events = yield self._get_events([r["event_id"] for r in results]) + events = yield self.get_events_as_list([r["event_id"] for r in results]) event_map = {ev.event_id: ev for ev in events} @@ -605,7 +605,7 @@ class SearchStore(BackgroundUpdateStore): results = list(filter(lambda row: row["room_id"] in room_ids, results)) - events = yield self._get_events([r["event_id"] for r in results]) + events = yield self.get_events_as_list([r["event_id"] for r in results]) event_map = {ev.event_id: ev for ev in events} |