Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Sep 4, 2023
1 parent f5b348b commit 74a41a4
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions sdk/src/client/node_api/core/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,20 +432,19 @@ impl Client {
}
url.set_path(INFO_PATH);

let resp = crate::client::node_manager::http_client::HttpClient::new(DEFAULT_USER_AGENT.to_string())
.get(
Node {
url,
auth,
disabled: false,
},
DEFAULT_API_TIMEOUT,
)
.await?;
// TODO: don't convert into_text(), but use into_json() directly, only for testing of the private tangle now
let node_info = resp.into_text().await?;
println!("info response {node_info}");
let resp: InfoResponse = serde_json::from_str(&node_info)?;
let resp: InfoResponse =
crate::client::node_manager::http_client::HttpClient::new(DEFAULT_USER_AGENT.to_string())
.get(
Node {
url,
auth,
disabled: false,
},
DEFAULT_API_TIMEOUT,
)
.await?
.into_json()
.await?;

Ok(resp)
}
Expand Down

0 comments on commit 74a41a4

Please sign in to comment.