mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix TypeError: 'dict_keys' object is not reversible
(#14280)
This commit is contained in:
parent
1c642156d7
commit
09b588854e
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 New Issue
Block a user