Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changeset/remove-relay-broadcast-stub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

refactor(relay): remove unused broadcast stub module (#1313)
29 changes: 0 additions & 29 deletions crates/nostream-relay/src/broadcast.rs

This file was deleted.

15 changes: 5 additions & 10 deletions crates/nostream-relay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
//! - `src/handlers/{auth,count,event,subscribe,unsubscribe}-message-handler.ts`
//! - `src/handlers/event-strategies/*-event-strategy.ts` (15 strategies)
//! - `src/adapters/web-socket-adapter.ts`, `src/adapters/web-socket-server-adapter.ts`
//! - `src/relay-broadcast/redis-relay-broadcast-fanout.ts`
//! - `src/controllers/admission/get-admission-check-controller.ts`,
//! `src/routes/admissions/index.ts`
//! - `src/utils/{sliding-window-rate-limiter,ewma-rate-limiter,hidden-content-cache,
//! relay-broadcast-deduplicator,relay-broadcast-message,relay-broadcast-state}.ts`
//! - `src/utils/{sliding-window-rate-limiter,ewma-rate-limiter,hidden-content-cache}.ts`
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
//! - `src/@types/{message-handlers,subscription,clients}.ts`
//! - `src/factories/{event-strategy-factory,message-handler-factory,
//! websocket-adapter-factory,rate-limiter-factory}.ts`
Expand All @@ -31,12 +29,10 @@
//! and `nip42::{authenticate, generate_challenge}` are `nostream-core`'s.
//!
//! **Still stubbed:** `NegentropySession`/`open_negentropy_session` (a NIP-77 job cut against
//! `041fe34e`, where the `neg-*` handlers first exist), and the cross-worker broadcast
//! `publish`/`deduplicate` (unassigned:
//! `src/relay-broadcast/redis-relay-broadcast-fanout.ts` is named by no bullet of issue #865,
//! which is why `broadcast.rs` still carries phase-1 stub labels naming job 005, and the job
//! may be re-cut). `broadcast.rs` therefore carries no behaviour; the in-process fan-out this
//! crate needs is the relay's own broadcast channel.
//! `041fe34e`, where the `neg-*` handlers first exist). Cross-worker Redis broadcast fan-out
//! (`src/relay-broadcast/redis-relay-broadcast-fanout.ts` and
//! `src/utils/relay-broadcast-{deduplicator,message,state}.ts`) was removed (#1313): the
//! in-process fan-out this crate needs is the relay's own broadcast channel ([`Relay::hub`]).
//!
//! Phase 2+ areas this crate does not own: the HTTP surface (`nostream-admin`) and the probe
//! family and NIP-66 monitor (`nostream-services`). The NIP-11 document's builder is this
Expand All @@ -49,7 +45,6 @@
//! predicate it calls — `nostream_core::time::check_created_at` — is core's, along with the
//! rest of the reference-time arithmetic; do not re-implement it here.

pub mod broadcast;
pub mod connection;
pub mod connection_cap;
pub mod dispatch;
Expand Down
Loading
Loading