Add sleep before retry

This commit is contained in:
hashmap 2018-10-16 19:43:27 +02:00
parent 8588b7e0aa
commit 7eb84f7675
No known key found for this signature in database
GPG key ID: 5EA3C2D2455ED9C8

View file

@ -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));
}
}