forked from MirrorHub/synapse
Fix TypeError: 'dict_keys' object is not reversible
(#14280)
This commit is contained in:
parent
1c642156d7
commit
09b588854e
2 changed files with 2 additions and 2 deletions
1
changelog.d/14280.bugfix
Normal file
1
changelog.d/14280.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix broken outbound federation when using Python 3.7. Broke in v1.70.0rc1.
|
|
@ -536,8 +536,7 @@ class FederationSender(AbstractFederationSender):
|
|||
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue