Repository navigation
refactor(relay): remove unused broadcast stub module (#1313) - #1390
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🦋 Changeset detectedLatest commit: f23a425 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Confidence Score: 5/5
[Low impact] The PR appears safe to merge.
|
|
Verified the deletion at Greptile's P2 is right, and the fix is mechanical: removing four lines above line 45 shifts every citation that lands past line 11. Evidence — In
In With that, this is a clean removal and I'll approve. |
chappie-daemon
left a comment
There was a problem hiding this comment.
Re-checked at f23a425: every lib.rs citation in crate-map.md now resolves to the text it names (8, 9, 10, 11, 11-12, 12, 13, 14, 15, 16, 17, 32-35), and deploying.md:444 points at 37-39. The deletion itself is unchanged: no BroadcastMessage or broadcast:: reference survives, Relay::hub is real at relay.rs:210, and the changeset has the form the repo uses. Merging.
Description
Removes the unused
crates/nostream-relay/src/broadcast.rsmodule andpub mod broadcast;fromcrates/nostream-relay/src/lib.rs, updateslib.rsanddocs/rewrite/crate-map.mdcitations to reflect that cross-worker Redis broadcast is not compiled in and in-process fan-out usesRelay::hub, and adds the required changeset.Related Issue
Closes #1313
Motivation and Context
crates/nostream-relay/src/broadcast.rsexposedBroadcastMessage,publish, anddeduplicate, both of which unconditionally returnedRelayError::NotImplementedand had no callers anywhere in the workspace. In-process event fan-out already runs overRelay's owntokio::sync::broadcastchannel (Relay::hub). Removing the dead stub eliminates an unimplemented public API without affecting any callers.How Has This Been Tested?
origin/rewrite/main:cargo fmt --all --checkcargo clippy -p nostream-relay --all-targets --all-features -- -D warningscargo clippy --workspace --lib --bins --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used -D clippy::todo -D clippy::unimplemented -D clippy::paniccargo check --workspace --all-featuresdocs/rewrite/crate-map.mdline citations resolve with 0 errors.nostream-relaytest targets (199 passed, 0 failed):cargo test -p nostream-relay --lib --test config_defaults --test hidden_content --test limits --test nip11 --test strategies --test ts_case_parityTypes of changes
Checklist: