From 8aac450cd0994eecf62d92cd6e66df8f7ec934da Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 6 Jan 2025 11:04:36 -0500 Subject: [PATCH] feat: log graph-indexed header --- src/indexer_client.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/indexer_client.rs b/src/indexer_client.rs index 1a7a270a..a7834027 100644 --- a/src/indexer_client.rs +++ b/src/indexer_client.rs @@ -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")]