0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 00:53:52 +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:
Richard van der Hoff 2019-06-04 18:05:06 +01:00 committed by GitHub
parent b4189b112f
commit dae224a73f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/5342.bugfix Normal file
View file

@ -0,0 +1 @@
Fix failure when fetching batches of events during backfill, etc.

View file

@ -279,6 +279,7 @@ class FederationClient(FederationBase):
"Failed to get PDU %s from %s because %s",
event_id, destination, e,
)
continue
except NotRetryingDestination as e:
logger.info(str(e))
continue