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/appservice.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/appservice.py')
-rw-r--r-- | synapse/storage/appservice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py index 6092f600ba..eb329ebd8b 100644 --- a/synapse/storage/appservice.py +++ b/synapse/storage/appservice.py @@ -302,7 +302,7 @@ class ApplicationServiceTransactionWorkerStore( event_ids = json.loads(entry["event_ids"]) - events = yield self._get_events(event_ids) + events = yield self.get_events_as_list(event_ids) defer.returnValue( AppServiceTransaction(service=service, id=entry["txn_id"], events=events) @@ -358,7 +358,7 @@ class ApplicationServiceTransactionWorkerStore( "get_new_events_for_appservice", get_new_events_for_appservice_txn ) - events = yield self._get_events(event_ids) + events = yield self.get_events_as_list(event_ids) defer.returnValue((upper_bound, events)) |