From 11b1655638b5a328662187a27f85a84df60fc759 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 2 Jan 2026 13:53:47 +0000 Subject: sync: use purgatory don't save new events destined for purgatory events directly to db or serve on websockets don't download events already in purgatory via negentropy sync --- src/nostr/builder.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nostr') diff --git a/src/nostr/builder.rs b/src/nostr/builder.rs index 3d7a0d8..da81e64 100644 --- a/src/nostr/builder.rs +++ b/src/nostr/builder.rs @@ -69,6 +69,11 @@ impl Nip34WritePolicy { } } + /// Get a reference to the purgatory for read-only access + pub fn purgatory(&self) -> &std::sync::Arc { + &self.ctx.purgatory + } + /// Handle repository announcement event async fn handle_announcement(&self, event: &Event) -> WritePolicyResult { let event_id_str = event.id.to_bech32().unwrap_or_else(|_| event.id.to_hex()); -- cgit v1.2.3