From d63ac77482959183611c0a9dcd254383625496ba Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Thu, 12 Jun 2025 15:26:44 -0400 Subject: [PATCH] Updated icarus_envy to get ICARUS_BASE_APU_URL env variable --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a0118a..03f0333 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", ] diff --git a/Cargo.toml b/Cargo.toml index ed00706..af73a87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/src/main.rs b/src/main.rs index efbb604..6a41d11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ pub const SECONDS_TO_SLEEP: u64 = 5; #[tokio::main] async fn main() -> Result<(), Box> { - 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") -}