You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
"get_pdu: event_id=%s from destinations=%s", event_id, destinations
392
+
f"get_pdu(event_id={event_id}): from destinations=%s", destinations
393
393
)
394
394
395
395
# TODO: Rate limit the number of times we try and get the same event.
@@ -415,11 +415,7 @@ async def get_pdu(
415
415
last_attempt=pdu_attempts.get(destination, 0)
416
416
iflast_attempt+PDU_RETRY_TIME_MS>now:
417
417
logger.debug(
418
-
"get_pdu: skipping destination=%s because we tried it recently last_attempt=%s and we only check every %s (now=%s)",
419
-
destination,
420
-
last_attempt,
421
-
PDU_RETRY_TIME_MS,
422
-
now,
418
+
f"get_pdu(event_id={event_id}): skipping destination={destination} because we tried it recently last_attempt={last_attempt} and we only check every {PDU_RETRY_TIME_MS} (now={now})",
423
419
)
424
420
continue
425
421
@@ -442,25 +438,24 @@ async def get_pdu(
442
438
# loop and stop asking other destinations.
443
439
break
444
440
445
-
exceptSynapseErrorase:
441
+
exceptNotRetryingDestinationase:
442
+
logger.info(f"get_pdu(event_id={event_id}): {e}")
443
+
continue
444
+
exceptFederationDeniedError:
446
445
logger.info(
447
-
"Failed to get PDU %s from %s because %s",
448
-
event_id,
449
-
destination,
450
-
e,
446
+
f"get_pdu(event_id={event_id}): Not attempting to fetch PDU from {destination} because the homeserver is not on our federation whitelist"
msg=f"Not retrying server {destination} because we tried it recently retry_last_ts={retry_last_ts} and we won't check for another retry_interval={retry_interval}ms."
0 commit comments