mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-12 15:32:11 -04:00
Batch up storing state groups when creating new room (#14918)
This commit is contained in:
parent
335f52d595
commit
1c95ddd09b
14 changed files with 371 additions and 49 deletions
|
@ -723,7 +723,7 @@ class HomeserverTestCase(TestCase):
|
|||
event_creator = self.hs.get_event_creation_handler()
|
||||
requester = create_requester(user)
|
||||
|
||||
event, context = self.get_success(
|
||||
event, unpersisted_context = self.get_success(
|
||||
event_creator.create_event(
|
||||
requester,
|
||||
{
|
||||
|
@ -735,7 +735,7 @@ class HomeserverTestCase(TestCase):
|
|||
prev_event_ids=prev_event_ids,
|
||||
)
|
||||
)
|
||||
|
||||
context = self.get_success(unpersisted_context.persist(event))
|
||||
if soft_failed:
|
||||
event.internal_metadata.soft_failed = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue