Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

chore: sunset the StaticMirroringWorker in favour of negentropy sync

Offen
#923 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Priyanshubhartistm arbeitet bereits daran.

Seit 21.10.2026.

  • #924 von @Priyanshubhartistm — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement

Is your feature request related to a problem? Please describe.
StaticMirroringWorker (src/app/static-mirroring-worker.ts, 417 lines) mirrors events from other relays through its own admission check, separate from the one EventMessageHandler uses. Rules added to the write path have to be repeated there: for example, with subscription plans enabled, StaticMirroringWorker.isUserAdmitted never reads the subscription, so mirrored writes skip expiry (raised on #909). It also has no unit tests (#904).

Describe the solution you'd like
Retire the worker, since NIP-77 (Negentropy) sync and other ways of syncing with relays now cover what it is used for:

  • Remove StaticMirroringWorker, its factory and its start-up wiring.
  • Remove or deprecate the mirroring.static[] settings (including skipAdmissionCheck), the settings docs and the admin console parts that depend on them, with a changeset noting the removal.
  • Document how to sync with another relay without it.

Additional context

  • Decision from the maintainer on #909: sunset the worker rather than patch the subscription check into it.
Vorherrschende Sprache
TypeScript
Sterne
829
Forks
234
Ø Merge
15 Std. 58 Min.
Gemergte PRs (30 T.)
73

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cameri/nostream

Alle Issues in cameri/nostream

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.