mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-06 19:45:20 +01:00
Use tokio::time::sleep over std:🧵:sleep in api.rs as well
This commit is contained in:
@@ -819,7 +819,7 @@ else {
|
||||
match req_result {
|
||||
Err(err) => {
|
||||
if let client::Retry::After(d) = dlg.http_error(&err) {
|
||||
sleep(d);
|
||||
sleep(d).await;
|
||||
continue;
|
||||
}
|
||||
${delegate_finish}(false);
|
||||
@@ -835,7 +835,7 @@ else {
|
||||
let server_response = json::from_str::<serde_json::Value>(&res_body_string).ok();
|
||||
|
||||
if let client::Retry::After(d) = dlg.http_failure(&restored_response, server_response.clone()) {
|
||||
sleep(d);
|
||||
sleep(d).await;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user