Skip to content

Commit

Permalink
Merge pull request #4 from samply/develop
Browse files Browse the repository at this point in the history
wait longer for blaze to start up
  • Loading branch information
davidmscholz authored Sep 17, 2024
2 parents f687f27 + 100e9e6 commit 97a15ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/db_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))

Expand Down

0 comments on commit 97a15ca

Please sign in to comment.