Skip to content

Commit

Permalink
Do not raise error when trying to fund account on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Mar 13, 2024
1 parent 02fa2f0 commit f22a501
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions cmd/soroban-cli/src/commands/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,11 @@ impl Network {
let response = match uri.scheme_str() {
Some("http") => hyper::Client::new().get(uri.clone()).await?,
Some("https") => {
#[cfg(target_os = "windows")]
{
return Err(Error::WindowsNotSupported(uri.to_string()));
}
#[cfg(not(target_os = "windows"))]
{
let https = hyper_tls::HttpsConnector::new();
hyper::Client::builder()
.build::<_, hyper::Body>(https)
.get(uri.clone())
.await?
}
let https = hyper_tls::HttpsConnector::new();
hyper::Client::builder()
.build::<_, hyper::Body>(https)
.get(uri.clone())
.await?
}
_ => {
return Err(Error::InvalidUrl(uri.to_string()));
Expand Down

0 comments on commit f22a501

Please sign in to comment.