Skip to content

Comment rot: metrics.rs / reputation_wiring.rs / handlers/client.rs still describe the pre-#1110 subscription watchers #1111

Closed

Description

@yigitdot

Follow-up from the PR #1110 review (kept out of that PR since these files are outside its diff).

PR #1110 replaced the per-watcher eth_newFilter subscription loops with the shared resumable_watcher eth_getLogs poller, but several doc comments in adjacent files still describe the deleted machinery:

  • crates/node/src/metrics.rs:1330 — "Pairs with the per-site warn! in run_watcher_once" — run_watcher_once no longer exists.
  • crates/node/src/metrics.rs:520 and :1373 — "the paired tracing::warn! in watcher_loop" — watcher_loop no longer exists.
  • crates/node/src/metrics.rs:399-400 ("an immediate re-arm + resubscribe"), :414-415 ("resubscribe/backoff loop"), :753-756 ("event-stream subscription errored … backoff-and-resubscribe path") — subscription-era descriptions of what the gauges now track (poll-tick backoff transitions).
  • crates/node/src/metrics.rs:522-523 — "A clean stream end (filter expiry / provider rotation) is NOT an error and does not bump this" — under the poller no stream can cleanly end; documents dead behavior.
  • crates/node/src/reputation_wiring.rs:21 — "during resubscribe gaps".
  • crates/node/src/handlers/client.rs:741-742 — "after a watcher resubscription".

(Line numbers as of PR #1110 head 0d6fbb7.)

These are doc-only fixes: reword to the poll-tick/backoff vocabulary of chain_events/resumable_watcher.rs and point the metric docs at the on_established/on_backoff hooks that now drive them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions