Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

chore: sunset the StaticMirroringWorker in favour of negentropy sync

Fermée
#923 1 commentaire 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Priyanshubhartistm y travaille déjà.

Depuis le 21/10/2026.

  • #924 par @Priyanshubhartistm — ouverte

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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.
Langage dominant
TypeScript
Étoiles
829
Forks
234
Merge moyen
16 h 57 min
PR mergées (30 j)
76

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cameri/nostream

Toutes les issues de cameri/nostream

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.