diff --git a/Cargo.toml b/Cargo.toml index 0692427..77c37e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ reqwest = { version = "0.11", features = ["json"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread", "full", "time", "signal"]} -sqlx = { version = "0.7", features = [ "runtime-tokio", "postgres"] } +sqlx = { version = "0.8.2", features = [ "runtime-tokio", "postgres"] } anyhow = "1.0.58" chrono = "0.4" diff --git a/src/db_utils.rs b/src/db_utils.rs index 3b8bd58..b73a6dc 100644 --- a/src/db_utils.rs +++ b/src/db_utils.rs @@ -52,7 +52,7 @@ pub async fn check_blaze_connection(blaze_base_url: &str, num_attempts: u32) -> } } attempts += 1; - tokio::time::sleep(std::time::Duration::from_secs(5)).await; //@todo: move param somewhere else? + tokio::time::sleep(std::time::Duration::from_secs(60)).await; //@todo: move param somewhere else? } Err(err.unwrap_or_else(|| anyhow!("Failed to connect to Blaze")))