mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Add sleep before retry
This commit is contained in:
parent
8588b7e0aa
commit
7eb84f7675
1 changed files with 1 additions and 0 deletions
|
@ -111,5 +111,6 @@ fn request_with_retry(url: &str) -> Result<Vec<String>, api::Error> {
|
|||
return res;
|
||||
}
|
||||
tries += 1;
|
||||
thread::sleep(time::Duration::from_millis(500));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue