mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04: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
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 New Issue
Block a user