Skip to content

Commit

Permalink
v0.1.29 set best time
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed May 21, 2024
1 parent 7524aae commit b763f23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rim-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rim-cli"
version = "0.1.28"
version = "0.1.29"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions rim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit b763f23

Please sign in to comment.