0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-09-06 01:46:00 +02:00
synapse/changelog.d/12529.misc
Sean Quah 8a87b4435a
Handle cancellation in EventsWorkerStore._get_events_from_cache_or_db (#12529)
Multiple calls to `EventsWorkerStore._get_events_from_cache_or_db` can
reuse the same database fetch, which is initiated by the first call.
Ensure that cancelling the first call doesn't cancel the other calls
sharing the same database fetch.

Signed-off-by: Sean Quah <seanq@element.io>
2022-04-25 19:39:17 +01:00

1 line
73 B
Text

Handle cancellation in `EventsWorkerStore._get_events_from_cache_or_db`.