mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
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>
This commit is contained in:
committed by
GitHub
parent
9ede4152ef
commit
832570545b
+5
-2
@@ -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/.*",
|
||||
]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user