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

Simplify persistance code #16584

Closed clokep closed 12 months ago

clokep commented 1 year ago

We only ever persist events for a single room at once, but the code handles multiple rooms at once this:

I'm not sure if this is desirable if we ever want to be able to persist from multiple rooms at once, but... 🤷

The first commit factors out a method, so should be reviewed separately.