diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-01 10:17:19 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-01 10:17:19 +0100 |
commit | 23c639ff325c454a7e4957be0b7852776de0fb58 (patch) | |
tree | 94e5a010248c9f80fda7668fd1df6af35cb9f88d /synapse/state.py | |
parent | Remove pointless join (diff) | |
download | synapse-23c639ff325c454a7e4957be0b7852776de0fb58.tar.xz |
Split a storage function in two so that we don't have to do extra work.
Diffstat (limited to 'synapse/state.py')
-rw-r--r-- | synapse/state.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/state.py b/synapse/state.py index ba2500d61c..9dddb77d5b 100644 --- a/synapse/state.py +++ b/synapse/state.py @@ -86,12 +86,7 @@ class StateHandler(object): If `event_type` is specified, then the method returns only the one event (or None) with that `event_type` and `state_key`. """ - events = yield self.store.get_latest_events_in_room(room_id) - - event_ids = [ - e_id - for e_id, _, _ in events - ] + event_ids = yield self.store.get_latest_event_ids_in_room(room_id) cache = None if self._state_cache is not None: |