From 832570545b0311f533499ead57d764a2bc04145c Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Date: Thu, 11 Apr 2024 12:55:42 +0200 Subject: [PATCH] Fix link check (#4074) Closes #4041 Changes: - Increase cache size and reduce retries. - Ignore Substrate SE links :( - Fix broken link. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --- .config/lychee.toml | 7 +++++-- substrate/client/network/types/src/peer_id.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/lychee.toml b/.config/lychee.toml index 200521ac41e..733b77ec0cf 100644 --- a/.config/lychee.toml +++ b/.config/lychee.toml @@ -2,9 +2,9 @@ # Run with `lychee -c .config/lychee.toml ./**/*.rs ./**/*.prdoc` cache = true -max_cache_age = "1d" +max_cache_age = "10d" max_redirects = 10 -max_retries = 6 +max_retries = 3 # Exclude localhost et.al. exclude_all_private = true @@ -51,4 +51,7 @@ exclude = [ # Behind a captcha (code 403): "https://iohk.io/en/blog/posts/2023/11/03/partner-chains-are-coming-to-cardano/", "https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/", + # 403 rate limited: + "https://etherscan.io/block/11090290", + "https://substrate.stackexchange.com/.*", ] diff --git a/substrate/client/network/types/src/peer_id.rs b/substrate/client/network/types/src/peer_id.rs index 44d4fa99252..14ac4a1e9aa 100644 --- a/substrate/client/network/types/src/peer_id.rs +++ b/substrate/client/network/types/src/peer_id.rs @@ -97,7 +97,7 @@ impl PeerId { /// Convert `PeerId` into ed25519 public key bytes. pub fn into_ed25519(&self) -> Option<[u8; 32]> { let hash = &self.multihash; - // https://www.ietf.org/id/draft-multiformats-multihash-07.html#name-the-multihash-identifier-re + // https://www.ietf.org/archive/id/draft-multiformats-multihash-07.html#name-the-multihash-identifier-re if hash.code() != 0 { // Hash is not identity return None -- GitLab