Add sleep before retry

This commit is contained in:
hashmap
2018-10-16 19:43:27 +02:00
parent 8588b7e0aa
commit 7eb84f7675
+1
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));
}
}