Skip to content

docs(storage-node): fix stale comments (doc drift)#442

Open
dsmfa10 wants to merge 1 commit into
mainfrom
chore/sn-doc-drift
Open

docs(storage-node): fix stale comments (doc drift)#442
dsmfa10 wants to merge 1 commit into
mainfrom
chore/sn-doc-drift

Conversation

@dsmfa10
Copy link
Copy Markdown
Collaborator

@dsmfa10 dsmfa10 commented Jun 3, 2026

Problem & fix (3 comment corrections)

  1. src/api/registry/core.rs — comment said
    // - X-DSM-DLV-ID: hex-encoded DLV id, but the value is decoded via
    parse_optional_dlv_id as Base32 Crockford (the crate bans hex). Reworded
    to "Base32 Crockford DLV id (no hex; decoded by parse_optional_dlv_id)".

  2. src/main.rs — module doc asserted
    Parameters: N=6, K=3, U_up=0.85, U_down=0.35. These values appear nowhere in
    the code; capacity/scaling parameters are runtime config ([replication] /
    ReplicationConfig). Reworded to say so rather than assert hardcoded numbers.

  3. src/timing.rs — dropped the stale historical note
    /// Calculate exponential backoff delay (replaces bitwise shift logic)
    /// Calculate exponential backoff delay.

Verification

cargo check clean (comments only).

CI gates & coverage

Full verification for this PR runs in CI — Rust (cargo fmt --check,
clippy -D warnings, workspace tests), Frontend, Android Unit Tests,
Coverage, SPDX headers, CodeQL (see the PR's Checks tab). The local
check noted above is a subset; the broader mandated gates (full workspace test
suite, codegen/scan, Android, Frontend) run in CI, not locally — none is
silently skipped.

Comment-only corrections, no behavior change:
- registry/core.rs: `X-DSM-DLV-ID` is Base32 Crockford, not "hex-encoded"
  (decoded via `parse_optional_dlv_id`; the crate bans hex).
- main.rs: module doc asserted "Parameters: N=6, K=3, U_up=0.85, U_down=0.35"
  which appear nowhere in code; capacity/scaling params are runtime config.
  Reword to say so.
- timing.rs: drop the stale "(replaces bitwise shift logic)" historical note.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants