matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Make cached account data/tags/admin types immutable #16325

Closed clokep closed 1 year ago

clokep commented 1 year ago

Spun out of #14911 to make that a bit smaller. This converts some of the types that are cached (inside a @cached decorator) to be immutable. For this PR it is pretty much s/JsonDict/JsonMapping/g and then deal with the callers who need to be updated.