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

Commit

Permalink
Fix TypeError: 'dict_keys' object is not reversible (#14280)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Oct 24, 2022
1 parent 1c64215 commit 09b5888
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/14280.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix broken outbound federation when using Python 3.7. Broke in v1.70.0rc1.
3 changes: 1 addition & 2 deletions synapse/federation/sender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ async def handle_room_events(events: List[EventBase]) -> None:

if event_entries:
now = self.clock.time_msec()
last_id = next(reversed(event_ids))
ts = event_to_received_ts[last_id]
ts = max(t for t in event_to_received_ts.values() if t)
assert ts is not None

synapse.metrics.event_processing_lag.labels(
Expand Down

0 comments on commit 09b5888

Please sign in to comment.