diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-05 14:31:47 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-05 14:31:47 +0000 |
| commit | f8235b7977c673524c12a229eddb7ace6b0c2c0d (patch) | |
| tree | 1725861f36085adc7b7c3f033e67cde910fe4c75 /src/main.rs | |
| parent | 8cb45487d7125a14d15c15dfc14b0804eb22ffd6 (diff) | |
purgatory: git data sync applies state and saves event
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<()> { | |||
| 62 | config.domain | 62 | config.domain |
| 63 | ); | 63 | ); |
| 64 | 64 | ||
| 65 | // Set the local relay on the write policy for purgatory notifications | ||
| 66 | // This must be done after relay creation since the relay depends on the policy | ||
| 67 | relay_with_db | ||
| 68 | .write_policy | ||
| 69 | .set_local_relay(relay_with_db.relay.clone()); | ||
| 70 | |||
| 65 | // Start SyncManager for proactive sync (Phase 2: multi-relay support, Phase 3: health tracking) | 71 | // Start SyncManager for proactive sync (Phase 2: multi-relay support, Phase 3: health tracking) |
| 66 | // Even without bootstrap relay, SyncManager discovers relays from stored announcements | 72 | // Even without bootstrap relay, SyncManager discovers relays from stored announcements |
| 67 | // Pass the already-registered sync metrics from Metrics to avoid duplicate registration | 73 | // Pass the already-registered sync metrics from Metrics to avoid duplicate registration |