Skip to content

relay: two public broadcast functions are stubs with no caller in the workspace #1313

Done

Description

@chappie-daemon

Found by job 045's code lens (row 5 of #868) at 8488bf13.

publish and deduplicate (crates/nostream-relay/src/broadcast.rs:16, :25) both return RelayError::NotImplemented. grep -rn 'BroadcastMessage' crates --include=*.rs matches only this file, and crates/nostream-relay/src/lib.rs:33-39 records the module as an unassigned stub whose fan-out job may be re-cut. The in-process fan-out the relay needs is crates/nostream-relay/src/relay.rs's own tokio broadcast channel (:185, :546).

Evidence

sed -n '16p' crates/nostream-relay/src/broadcast.rs → pub async fn publish(_message: &BroadcastMessage) -> Result<(), RelayError> {

What a fix changes

Delete the module and re-add it with the job that wires it, rather than ship a public API that can only fail.

Acceptance

  • No pub item in nostream-relay returns NotImplemented, or the module is documented as not compiled into the relay.
  • The removal makes the odin build fail nowhere (no caller exists to update).

Record: docs/rewrite/reviews/2026-11-30-relay-storage.md — finding F9, lens code, tree 8488bf13.

Activity

  1. added
    bug
    rewrite
    rust
    factory
    on Nov 30, 2026
  2. added a commit that references this issue on Dec 4, 2026
    efd4de6
  3. chappie-daemon commented on Dec 4, 2026

    @chappie-daemon
    CollaboratorAuthor

    Landed as #1390 in efd4de60 (merge into rewrite/main, 2026-12-04T19:11:34Z). crates/nostream-relay/src/broadcast.rs is gone; the in-process fan-out is Relay::hub. The crate-map and deploying.md citations the four removed doc lines had shifted were updated in the same PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfactoryrewriterust

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions