diff options
Diffstat (limited to 'src/nostr/builder.rs')
| -rw-r--r-- | src/nostr/builder.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nostr/builder.rs b/src/nostr/builder.rs index 0e5c18a..81f7fbb 100644 --- a/src/nostr/builder.rs +++ b/src/nostr/builder.rs | |||
| @@ -162,7 +162,11 @@ impl Nip34WritePolicy { | |||
| 162 | match self.state_policy.validate(event) { | 162 | match self.state_policy.validate(event) { |
| 163 | StateResult::Accept => { | 163 | StateResult::Accept => { |
| 164 | // Process state alignment asynchronously | 164 | // Process state alignment asynchronously |
| 165 | match self.state_policy.process_state_event(event, is_synced).await { | 165 | match self |
| 166 | .state_policy | ||
| 167 | .process_state_event(event, is_synced) | ||
| 168 | .await | ||
| 169 | { | ||
| 166 | Ok(poilicy_result) => poilicy_result, | 170 | Ok(poilicy_result) => poilicy_result, |
| 167 | Err(e) => { | 171 | Err(e) => { |
| 168 | tracing::warn!("Failed to process state event {}: {}", event_id_str, e); | 172 | tracing::warn!("Failed to process state event {}: {}", event_id_str, e); |
| @@ -247,7 +251,8 @@ impl Nip34WritePolicy { | |||
| 247 | ); | 251 | ); |
| 248 | return WritePolicyResult::Reject { | 252 | return WritePolicyResult::Reject { |
| 249 | status: false, | 253 | status: false, |
| 250 | message: "invalid: previously expired from purgatory without git data".into(), | 254 | message: "invalid: previously expired from purgatory without git data" |
| 255 | .into(), | ||
| 251 | }; | 256 | }; |
| 252 | } | 257 | } |
| 253 | 258 | ||