From 0532760f8a87c7295387ecc0df3c16d58045aca3 Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Tue, 7 Jul 2026 23:03:46 +0300 Subject: [PATCH] chore(indexer): fix doc comment and log --- lez/indexer/core/src/chain_consistency.rs | 3 ++- lez/indexer/core/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lez/indexer/core/src/chain_consistency.rs b/lez/indexer/core/src/chain_consistency.rs index 4ffa244c..3c3ab1e3 100644 --- a/lez/indexer/core/src/chain_consistency.rs +++ b/lez/indexer/core/src/chain_consistency.rs @@ -212,7 +212,8 @@ impl IndexerCore { /// The anchor was finalized at `anchor.slot`, so the same chain must still /// serve it there, while a reset chain re-inscribes its content only at /// later wall-clock slots. Only positive evidence of a different chain - /// yields `Inconsistent`; absence of data stays `Inconclusive`. + /// yields [`ChainConsistency::Inconsistent`]; absence of data stays + /// [`ChainConsistency::Inconclusive`]. async fn verify_chain_at_anchor(&self, anchor: &Anchor) -> Result { match self.node.channel_state(self.config.channel_id).await { Ok(state) => { diff --git a/lez/indexer/core/src/lib.rs b/lez/indexer/core/src/lib.rs index 77839296..32f0547d 100644 --- a/lez/indexer/core/src/lib.rs +++ b/lez/indexer/core/src/lib.rs @@ -168,8 +168,8 @@ impl IndexerCore { async_stream::stream! { let mut cursor = initial_cursor; - if cursor.is_some() { - info!("Resuming indexer from cursor {cursor:?}"); + if let Some(slot) = &cursor { + info!("Resuming indexer from cursor {slot:?}"); } else { info!("Starting indexer from beginning of channel"); }