mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 00:49:59 -04:00
Faster room joins: avoid blocking when pulling events with missing prevs (#13355)
Avoid blocking on full state in `_resolve_state_at_missing_prevs` and return a new flag indicating whether the resolved state is partial. Thread that flag around so that it makes it into the event context. Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
8b603299bf
commit
335ebb21cc
8 changed files with 124 additions and 33 deletions
|
@ -462,6 +462,7 @@ class StateTestCase(unittest.TestCase):
|
|||
state_ids_before_event={
|
||||
(e.type, e.state_key): e.event_id for e in old_state
|
||||
},
|
||||
partial_state=False,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -492,6 +493,7 @@ class StateTestCase(unittest.TestCase):
|
|||
state_ids_before_event={
|
||||
(e.type, e.state_key): e.event_id for e in old_state
|
||||
},
|
||||
partial_state=False,
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue