Skip to content

gossip: GossipHandles::reputation_publish_trigger doc enumerates None causes with "iff" and is now incomplete #1343

Closed

Description

@yigitdot

Follow-up from the review of #1340.

crates/gossip/src/service.rs documents GossipHandles::reputation_publish_trigger as:

None iff that task wasn't spawned (reputation disabled or no report drain wired).

"reputation disabled" reads as subscribe_reputation = false. Since #1340 there are two further causes, both of which return before the publisher is spawned:

  • a ReportGate::Disabled gate, and
  • a missing sink.

An exhaustive "iff" list is the doc shape most likely to go quietly wrong when a cause is added elsewhere in the function — the enumeration is in the GossipHandles struct, the branch that grew is in spawn_reputation_tasks.

Suggested wording: "…(subscribe_reputation = false, a ReportGate::Disabled gate, no sink, or no report drain wired)".

Out of scope for #1340 because the line predates it, but #1340 is what invalidated it.

Activity

  1. added
    kind:docs
    rust
    prio:low
    on Jul 21, 2026
  2. self-assigned this
    on Jul 21, 2026
  3. thiras commented on Jul 21, 2026

    @thiras
    Contributor

    Fixed in 71fe6a1 (#1358).

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

Metadata

Metadata

Assignees

Labels

kind:docsprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions