Skip to content

Commit

Permalink
Fix bug in hunt for missing state
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Feb 23, 2024
1 parent abc37e3 commit 463d6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ async def _log_client_state_desync(
)
if state_error:
client_state_desync_logger.warning(
"client state discrepancy in room %s: %s",
"client state discrepancy in incremental sync in room %s: %s",
room_id,
state_error,
)
Expand Down Expand Up @@ -1572,7 +1572,7 @@ async def event_id_to_membership(event_id: Optional[str]) -> Optional[str]:
if event_type != EventTypes.Member:
continue

if state_key not in client_calculated_state:
if (event_type, state_key) not in client_calculated_state:
error_map[state_key] = ClientCalculatedMembershipStateErrorEntry(
actual=await event_id_to_membership(actual_event_id),
calculated=None,
Expand Down

0 comments on commit 463d6e6

Please sign in to comment.