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

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Mar 25, 2022
1 parent 289faf1 commit cd93056
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,6 @@ async def create_event(
state_event_ids=state_event_ids,
depth=depth,
)
logger.info(
"create_new_client_event %s event=%s state_group=%s",
event.type,
event.event_id,
context._state_group,
)

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

0 comments on commit cd93056

Please sign in to comment.