mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
fix(versionup): use latest oauth2 lib
It enables using std::time::Duration natively
This commit is contained in:
@@ -772,7 +772,7 @@ else {
|
||||
match req_result {
|
||||
Err(err) => {
|
||||
if let oauth2::Retry::After(d) = dlg.http_error(&err) {
|
||||
sleep(Duration::from_millis(d.num_milliseconds() as u64));
|
||||
sleep(d);
|
||||
continue;
|
||||
}
|
||||
${delegate_finish}(false);
|
||||
@@ -785,7 +785,7 @@ else {
|
||||
if let oauth2::Retry::After(d) = dlg.http_failure(&res,
|
||||
json::from_str(&json_err).ok(),
|
||||
json::from_str(&json_err).ok()) {
|
||||
sleep(Duration::from_millis(d.num_milliseconds() as u64));
|
||||
sleep(d);
|
||||
continue;
|
||||
}
|
||||
${delegate_finish}(false);
|
||||
|
||||
Reference in New Issue
Block a user