mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 00:09:26 -05: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:
|
if event_entries:
|
||||||
now = self.clock.time_msec()
|
now = self.clock.time_msec()
|
||||||
last_id = next(reversed(event_ids))
|
ts = max(t for t in event_to_received_ts.values() if t)
|
||||||
ts = event_to_received_ts[last_id]
|
|
||||||
assert ts is not None
|
assert ts is not None
|
||||||
|
|
||||||
synapse.metrics.event_processing_lag.labels(
|
synapse.metrics.event_processing_lag.labels(
|
||||||
|
Loading…
Reference in New Issue
Block a user