Skip to content

docs(node): dht/origin.rs module doc still says ChainOriginDirectory doesn't exist #1289

Closed

Description

@yigitdot

crates/node/src/dht/origin.rs (module doc ~L18-21 and the comment at ~L67) states that the chain-backed ChainOriginDirectory "lands with the on-chain origin-directory follow-up" and that the module "ships only the trait + a ConfigOriginDirectory".

That doc rotted when crates/node/src/dht/chain_origin_directory.rs landed. ChainOriginDirectory is a full implementation (impl OriginDirectory at chain_origin_directory.rs:624), exported from dht/mod.rs:30, and selected by the runtime at crates/node/src/runtime/mod.rs:709 whenever origin_assignment_address + publisher_registry_address are configured. ConfigOriginDirectory is only the fallback.

This actively misleads: PR #1285 scoped an e2e test away from origin recognition on the strength of that comment, asserting in its module docs that the capability did not exist. Caught in review and fixed there, but the underlying trap is still armed for the next reader.

Fix: update the origin.rs module doc to describe the trait plus its two implementations and which one the runtime picks.

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