diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-05 13:05:17 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-05 13:05:17 +0000 |
| commit | 623cae575f8c9ce33f2d7fdc2526db495f846acb (patch) | |
| tree | 41b346a136a6c3d56fcd7b8e522fab96a3da7b67 /src/nostr | |
| parent | 11b1655638b5a328662187a27f85a84df60fc759 (diff) | |
purgatory: add state git data sync
Diffstat (limited to 'src/nostr')
| -rw-r--r-- | src/nostr/policy/state.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nostr/policy/state.rs b/src/nostr/policy/state.rs index 48435ea..9ca3ee6 100644 --- a/src/nostr/policy/state.rs +++ b/src/nostr/policy/state.rs | |||
| @@ -173,6 +173,14 @@ impl StatePolicy { | |||
| 173 | self.ctx | 173 | self.ctx |
| 174 | .purgatory | 174 | .purgatory |
| 175 | .add_state(event.clone(), state.identifier.clone(), event.pubkey); | 175 | .add_state(event.clone(), state.identifier.clone(), event.pubkey); |
| 176 | |||
| 177 | // Trigger background git data sync from remote servers | ||
| 178 | self.ctx.purgatory.start_state_sync( | ||
| 179 | state.clone(), | ||
| 180 | self.ctx.database.clone(), | ||
| 181 | Some(self.ctx.domain.clone()), | ||
| 182 | ); | ||
| 183 | |||
| 176 | tracing::info!( | 184 | tracing::info!( |
| 177 | "state event added to purgatory: eventid: {}, identifier: {}", | 185 | "state event added to purgatory: eventid: {}, identifier: {}", |
| 178 | state.event.id, | 186 | state.event.id, |