diff options
Diffstat (limited to 'src/nostr')
| -rw-r--r-- | src/nostr/policy/state.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nostr/policy/state.rs b/src/nostr/policy/state.rs index a85e351..7d69d7d 100644 --- a/src/nostr/policy/state.rs +++ b/src/nostr/policy/state.rs | |||
| @@ -152,18 +152,11 @@ impl StatePolicy { | |||
| 152 | Ok(WritePolicyResult::Accept) // event should be saved and broadcast | 152 | Ok(WritePolicyResult::Accept) // event should be saved and broadcast |
| 153 | } else { | 153 | } else { |
| 154 | // if no git data - add to purgatory | 154 | // if no git data - add to purgatory |
| 155 | // (add_state automatically enqueues for background sync) | ||
| 155 | self.ctx | 156 | self.ctx |
| 156 | .purgatory | 157 | .purgatory |
| 157 | .add_state(event.clone(), state.identifier.clone(), event.pubkey); | 158 | .add_state(event.clone(), state.identifier.clone(), event.pubkey); |
| 158 | 159 | ||
| 159 | // Trigger background git data sync from remote servers | ||
| 160 | self.ctx.purgatory.start_state_sync( | ||
| 161 | state.clone(), | ||
| 162 | self.ctx.database.clone(), | ||
| 163 | Some(self.ctx.domain.clone()), | ||
| 164 | self.ctx.get_local_relay(), | ||
| 165 | ); | ||
| 166 | |||
| 167 | tracing::info!( | 160 | tracing::info!( |
| 168 | "state event added to purgatory: eventid: {}, identifier: {}", | 161 | "state event added to purgatory: eventid: {}, identifier: {}", |
| 169 | state.event.id, | 162 | state.event.id, |