Skip to content
Snippets Groups Projects
Commit 2f0180b0 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't bother interning keys that are already interned

parent acdfef7b
No related branches found
No related tags found
No related merge requests found
......@@ -284,9 +284,7 @@ class StateStore(SQLBaseStore):
desc="_get_state_group_for_events",
)
defer.returnValue({
intern(row["event_id"].encode('ascii')): row["state_group"] for row in rows
})
defer.returnValue({row["event_id"]: row["state_group"] for row in rows})
def _get_some_state_from_cache(self, group, types):
"""Checks if group is in cache. See `_get_state_for_groups`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment