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

This commit is contained in:
2025-06-12 15:26:44 -04:00
parent 006fa3a2d8
commit d63ac77482
3 changed files with 3 additions and 8 deletions

2
Cargo.lock generated
View File

@@ -451,7 +451,7 @@ dependencies = [
[[package]] [[package]]
name = "icarus_envy" name = "icarus_envy"
version = "0.2.0" 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 = [ dependencies = [
"dotenvy", "dotenvy",
] ]

View File

@@ -13,4 +13,4 @@ serde_json = { version = "1.0.139" }
uuid = { version = "1.16.0", features = ["v4", "serde"] } uuid = { version = "1.16.0", features = ["v4", "serde"] }
dotenvy = { version = "0.15.7" } dotenvy = { version = "0.15.7" }
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.4.3" } 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" }

View File

@@ -4,7 +4,7 @@ pub const SECONDS_TO_SLEEP: u64 = 5;
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> { 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 { loop {
println!("Base URL: {}", app_base_url); 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")
}