diff --git a/rim-cli/Cargo.toml b/rim-cli/Cargo.toml index 988f839..4c95275 100644 --- a/rim-cli/Cargo.toml +++ b/rim-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rim-cli" -version = "0.1.28" +version = "0.1.29" edition = "2021" [dependencies] diff --git a/rim/src/lib.rs b/rim/src/lib.rs index 557c5aa..880aee7 100644 --- a/rim/src/lib.rs +++ b/rim/src/lib.rs @@ -19,7 +19,7 @@ async fn caption( Err(e) => { println!("Retry {:#?} with {:?} times", idx, retries); retries += 1; - tokio::time::sleep(tokio::time::Duration::from_secs(30)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(15)).await; if retries > 10 { println!("Failed Path: {:#?}", img.local); return Err(e); @@ -55,7 +55,7 @@ async fn processing( Err(e) => eprintln!("Task failed: {:?}", e), }; } - tokio::time::sleep(tokio::time::Duration::from_secs(15)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(10)).await; tasks.clear(); } Ok(())