Updated icarus_envy (#22)

Reviewed-on: #22
Co-authored-by: kdeng00 <kundeng00@pm.me>
Co-committed-by: kdeng00 <kundeng00@pm.me>
This commit is contained in:
kdeng00
2025-06-12 23:59:24 +00:00
committed by phoenix
parent 006fa3a2d8
commit 79eea81e28
3 changed files with 31 additions and 11 deletions
+1 -6
View File
@@ -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")
}