Increase retries

This commit is contained in:
Joel Wachsler 2022-07-11 14:22:35 +00:00
parent 7a6caf4de3
commit 92a6831750
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ async fn main() -> Result<()> {
const TORRENT_URL: &str = "http://www.legittorrents.info/download.php?id=5cc013e801095be61d768e609e3039da58616fd0&f=Oddepoxy%20-%20Oddepoxy%20(2013)%20[OGG%20320%20CBR].torrent";
let _ = api.torrent_management().add(TORRENT_URL).send().await?;
let mut tries = 5;
let mut tries = 10;
while tries > 0 {
let info = api.torrent_management().info().send().await?;
if let Some(first) = &info.get(0) {

View File

@ -17,7 +17,7 @@ async fn main() -> Result<()> {
const TORRENT_URL: &str = "http://www.legittorrents.info/download.php?id=5cc013e801095be61d768e609e3039da58616fd0&f=Oddepoxy%20-%20Oddepoxy%20(2013)%20[OGG%20320%20CBR].torrent";
let _ = api.torrent_management().add(TORRENT_URL).send().await?;
let mut tries = 5;
let mut tries = 10;
while tries > 0 {
let info = api.torrent_management().info().send().await?;
if let Some(first) = &info.get(0) {