feat: populate error cache also from endpoint_details if necessary
This commit is contained in:
parent
5797615736
commit
bbe7bd48c5
1 changed files with 3 additions and 0 deletions
|
|
@ -1078,6 +1078,9 @@ class fetch:
|
|||
# If anything goes wrong we cannot reply details
|
||||
message = _format_connection_issue(request_url, e)
|
||||
print(f"[fetch.endpoint_details] {message}")
|
||||
if not skip_error_cache:
|
||||
async with _available_error_cache_lock:
|
||||
_available_error_cache[endpoint] = time.time()
|
||||
return []
|
||||
|
||||
def ep2base(ep):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue