Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Feb 13, 2025
1 parent 5866411 commit b289f7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hotshot-task-impls/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl From<BuilderApiError> for BuilderClientError {
pub struct BuilderClient<TYPES: NodeType, Ver: StaticVersionType> {
/// Underlying surf_disco::Client for the legacy builder api
client: Client<BuilderApiError, Ver>,
base_url: Url,
/// Marker for [`NodeType`] used here
_marker: std::marker::PhantomData<TYPES>,
}
Expand All @@ -80,6 +81,7 @@ impl<TYPES: NodeType, Ver: StaticVersionType> BuilderClient<TYPES, Ver> {
client: Client::builder(url.clone())
.set_timeout(Some(Duration::from_secs(2)))
.build(),
base_url: url,
_marker: std::marker::PhantomData,
}
}
Expand Down Expand Up @@ -160,8 +162,9 @@ pub mod v0_1 {
"{LEGACY_BUILDER_MODULE}/claimheaderinput/{block_hash}/{view_number}/{sender}/{encoded_signature}"
);

let response = reqwest::get(endpoint).await;
println!("reqwest response: {:?}", response);
let ep = format!("{}/{}", self.base_url, endpoint);
let response = reqwest::get(ep.clone()).await;
println!("requested from {}: {:?}", ep, response);

println!("querying {}", endpoint);
self.client.get(endpoint).send().await.map_err(|err| {
Expand Down

0 comments on commit b289f7e

Please sign in to comment.