We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8afb2e5 commit 5605fbdCopy full SHA for 5605fbd
test-runtime/build.rs
@@ -64,7 +64,7 @@ async fn run() {
64
65
// Download metadata from binary; retry until successful, or a limit is hit.
66
let metadata_bytes: sp_core::Bytes = {
67
- const MAX_RETRIES: usize = 20;
+ const MAX_RETRIES: usize = 6;
68
let mut retries = 0;
69
70
loop {
@@ -85,7 +85,7 @@ async fn run() {
85
break res
86
}
87
_ => {
88
- thread::sleep(time::Duration::from_secs(1));
+ thread::sleep(time::Duration::from_secs(1 << retries));
89
retries += 1;
90
91
};
0 commit comments