Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
rename golem url env var
Browse files Browse the repository at this point in the history
  • Loading branch information
senia-psm committed Jan 31, 2024
1 parent 641b399 commit 500becd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}

async fn async_main(cmd: GolemCommand) -> Result<(), Box<dyn std::error::Error>> {
let url_str =
std::env::var("GOLEM_BASE_URL").unwrap_or("https://release.api.golem.cloud/".to_string());
let url_str = std::env::var("GOLEM_CLOUD_BASE_URL")
.ok()
.or_else(|| std::env::var("GOLEM_BASE_URL").ok())
.unwrap_or("https://release.api.golem.cloud/".to_string());
let gateway_url_str = std::env::var("GOLEM_GATEWAY_BASE_URL").unwrap_or(url_str.clone());
let url = Url::parse(&url_str).unwrap();
let gateway_url = Url::parse(&gateway_url_str).unwrap();
Expand Down

0 comments on commit 500becd

Please sign in to comment.