From f8235b7977c673524c12a229eddb7ace6b0c2c0d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 5 Jan 2026 14:31:47 +0000 Subject: purgatory: git data sync applies state and saves event --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fbe3e34..59edc09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,6 +62,12 @@ async fn main() -> Result<()> { config.domain ); + // Set the local relay on the write policy for purgatory notifications + // This must be done after relay creation since the relay depends on the policy + relay_with_db + .write_policy + .set_local_relay(relay_with_db.relay.clone()); + // Start SyncManager for proactive sync (Phase 2: multi-relay support, Phase 3: health tracking) // Even without bootstrap relay, SyncManager discovers relays from stored announcements // Pass the already-registered sync metrics from Metrics to avoid duplicate registration -- cgit v1.2.3