Skip to content

docs: list all five hot-reloadable sections at every enumeration site - #1805

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/decdn-low-loc-quick-wins-un91g3
Aug 24, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/decdn-low-loc-quick-wins-un91g3

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Closes #1623.

The hot-reloadable set is five sections — observability.log_level, cache.pinned_hashes, security.*, the [content] denylist, and [load_shed] (the RuntimeReloadState iteration order). Since #1623 was filed the enumeration sites drifted again rather than staying merely two-entry stale: every site listed a different subset, and none listed all five.

Docs-only; no behavior change.

crates/node/src/runtime/reload.rs (module doc)

  • Add the missing [content] and [load_shed] bullets — the header of the file that drives the reload loop listed only three of its own five sections.
  • Mark this list as the authority and note that NodeCommand::Reload's help repeats it, so the next section addition has one place to update plus one known mirror.

crates/common/src/cli/node.rs

  • NodeCommand::Reload help (decdn node reload --help): enumerate the full five-entry set and point at the authoritative list.
  • RotateKeyArgs doc: stop enumerating the set entirely (it had drifted to a three-entry copy); point at runtime/reload.rs instead.
  • ReloadArgs doc: the command prints only the post-reload log_level. payment.rate_per_mb is restart-required (repricing means drain + restart) and is neither in ReloadResponse nor in the plain output, so the "prints rate_per_mb and log_level" / "two human-readable lines" claims were wrong on both counts.

Validated with cargo fmt --check and cargo clippy -p decdn-common -p decdn-node --all-targets (clean).

🤖 Generated with Claude Code

https://claude.ai/code/session_01SU9zFu3PvAyeMa8g7ezijv


Generated by Claude Code

…#1623)

The reloadable set is observability.log_level, cache.pinned_hashes,
security.*, the [content] denylist, and [load_shed]. The
NodeCommand::Reload help enumerated four, the RotateKeyArgs doc three,
and the runtime/reload.rs module header three — each missing sections
the reload loop drives.

- runtime/reload.rs module doc: add the [content] and [load_shed]
  bullets and mark the list as the authority.
- NodeCommand::Reload help: full five-entry set plus a pointer at the
  authoritative list.
- RotateKeyArgs doc: stop enumerating; point at runtime/reload.rs.
- ReloadArgs doc: the command prints only the post-reload log_level —
  rate_per_mb is restart-required and left the response.

Closes #1623

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SU9zFu3PvAyeMa8g7ezijv
Copilot AI lite review requested due to automatic review settings August 24, 2026 19:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Rustdoc/CLI help text to keep the hot-reloadable configuration set consistent across the codebase (closing #1623), and corrects a couple of stale or inaccurate CLI-doc claims without changing runtime behavior.

Changes:

  • Make crates/node/src/runtime/reload.rs’s module doc enumerate the full five hot-reloadable sections (including [content] and [load_shed]) and mark it as the authority.
  • Update NodeCommand::Reload help text to list all five sections and point back to the authoritative module doc.
  • Remove/avoid duplicated enumerations elsewhere (e.g. rotate-key docs) and correct decdn node reload output documentation to match actual output (log_level only).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
crates/node/src/runtime/reload.rs Expands and clarifies the authoritative hot-reloadable-section list to include [content] and [load_shed].
crates/common/src/cli/node.rs Updates decdn node reload --help and related docs to match the full reloadable set and correct output claims.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/common/src/cli/node.rs Resolved
@alpergundogdu
alpergundogdu merged commit e7e941f into main Aug 24, 2026
23 of 24 checks passed
@alpergundogdu
alpergundogdu deleted the claude/decdn-low-loc-quick-wins-un91g3 branch August 24, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(cli): NodeCommand::Reload lists only two reloadable fields; the set is now four

3 participants