Skip to content

Commit

Permalink
feat: log graph-indexed header
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Jan 6, 2025
1 parent a99e209 commit 8aac450
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/indexer_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ impl IndexerClient {
return Err(BadResponse(status.as_u16().to_string()));
}

if let Some(indexed_block) = response
.headers()
.get("graph-indexed")
.and_then(|v| v.to_str().ok())
{
tracing::debug!(indexed_block);
}

#[derive(Debug, Deserialize)]
pub struct IndexerResponsePayload {
#[serde(rename = "graphQLResponse")]
Expand Down

0 comments on commit 8aac450

Please sign in to comment.