mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 12:23:48 +01:00
Fix failure to fetch batches of PDUs (#5342)
FederationClient.get_pdu is called in a loop to fetch a batch of PDUs. A failure to fetch one should not result in a failure of the whole batch. Add the missing `continue`.
This commit is contained in:
parent
b4189b112f
commit
dae224a73f
2 changed files with 2 additions and 0 deletions
1
changelog.d/5342.bugfix
Normal file
1
changelog.d/5342.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix failure when fetching batches of events during backfill, etc.
|
|
@ -279,6 +279,7 @@ class FederationClient(FederationBase):
|
||||||
"Failed to get PDU %s from %s because %s",
|
"Failed to get PDU %s from %s because %s",
|
||||||
event_id, destination, e,
|
event_id, destination, e,
|
||||||
)
|
)
|
||||||
|
continue
|
||||||
except NotRetryingDestination as e:
|
except NotRetryingDestination as e:
|
||||||
logger.info(str(e))
|
logger.info(str(e))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue