Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit cd93056

Browse files
committed
Some cleanup
1 parent 289faf1 commit cd93056

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

synapse/handlers/message.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -625,12 +625,6 @@ async def create_event(
625625
state_event_ids=state_event_ids,
626626
depth=depth,
627627
)
628-
logger.info(
629-
"create_new_client_event %s event=%s state_group=%s",
630-
event.type,
631-
event.event_id,
632-
context._state_group,
633-
)
634628

635629
# In an ideal world we wouldn't need the second part of this condition. However,
636630
# this behaviour isn't spec'd yet, meaning we should be able to deactivate this
@@ -1025,8 +1019,9 @@ async def create_new_client_event(
10251019
and state_event_ids
10261020
and builder.internal_metadata.is_historical()
10271021
):
1028-
# Add explicit state to the insertion event so the rest of the batch
1029-
# can inherit the same state and state_group
1022+
# Add explicit state to the insertion event so it has state to derive
1023+
# from even though it's floating with no `prev_events`. The rest of
1024+
# the batch can derive from this state and state_group.
10301025
#
10311026
# TODO(faster_joins): figure out how this works, and make sure that the
10321027
# old state is complete.

0 commit comments

Comments
 (0)