Skip to content

Commit 4faa6a1

Browse files
committed
[watcher] trim idempotency comment
Replace 4-line block with a 1-line comment to match the rest of the file.
1 parent f199c45 commit 4faa6a1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/hashi/src/onchain/watcher.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,7 @@ async fn handle_events(
451451
// Advance uses the event's checkpoint timestamp (~sign-time)
452452
// rather than `txn.timestamp_ms` (creation time) to stay in
453453
// lockstep with the guardian's `last_updated_at`.
454-
// `signatures.is_some()` makes the apply idempotent — set
455-
// here on the first observation and by `scrape_hashi` at
456-
// bootstrap, so checkpoint redelivery and bootstrap-replay
457-
// events are skipped.
454+
// Gate on `signatures.is_none()` for idempotency across checkpoint redelivery and bootstrap replay.
458455
let (limiter_inputs, pick_to_sign_ms) = {
459456
let mut state = state.state_mut();
460457
state

0 commit comments

Comments
 (0)