Updated icarus_envy to get ICARUS_BASE_APU_URL env variable
All checks were successful
Rust Build / Check (pull_request) Successful in 33s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 24s
Rust Build / Clippy (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 45s
All checks were successful
Rust Build / Check (pull_request) Successful in 33s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 24s
Rust Build / Clippy (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 45s
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -451,7 +451,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "icarus_envy"
|
||||
version = "0.2.0"
|
||||
source = "git+ssh://git@git.kundeng.us/phoenix/icarus_envy.git?tag=v0.2.0#3ee8c1e573ba9637769aa0538d2c11335e39ed9f"
|
||||
source = "git+ssh://git@git.kundeng.us/phoenix/icarus_envy.git?tag=v0.2.0-devel-e7e6fd904b-950#e7e6fd904b3595f1846ad4f9e583130e32219861"
|
||||
dependencies = [
|
||||
"dotenvy",
|
||||
]
|
||||
|
@@ -13,4 +13,4 @@ serde_json = { version = "1.0.139" }
|
||||
uuid = { version = "1.16.0", features = ["v4", "serde"] }
|
||||
dotenvy = { version = "0.15.7" }
|
||||
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.4.3" }
|
||||
icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.2.0" }
|
||||
icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.2.0-devel-e7e6fd904b-950" }
|
||||
|
@@ -4,7 +4,7 @@ pub const SECONDS_TO_SLEEP: u64 = 5;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let app_base_url = get_icarus_url().await;
|
||||
let app_base_url = icarus_envy::environment::get_icarus_base_api_url().await;
|
||||
|
||||
loop {
|
||||
println!("Base URL: {}", app_base_url);
|
||||
@@ -160,8 +160,3 @@ mod api {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async fn get_icarus_url() -> String {
|
||||
dotenvy::dotenv().ok();
|
||||
std::env::var("ICARUS_BASE_API_URL").expect("Could not find url")
|
||||
}
|
||||
|
Reference in New Issue
Block a user