0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 19:03:53 +01:00

Merge pull request #1617 from matrix-org/erikj/intern_state_dict

Correctly intern keys in state cache
This commit is contained in:
Erik Johnston 2016-11-15 16:45:55 +00:00 committed by GitHub
commit c7546b3cdb

View file

@ -653,7 +653,10 @@ class StateStore(SQLBaseStore):
else:
state_dict = results[group]
state_dict.update(group_state_dict)
state_dict.update({
(intern_string(k[0]), intern_string(k[1])): v
for k, v in group_state_dict.items()
})
self._state_group_cache.update(
cache_seq_num,