upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/nostr/builder.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:50:54 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:50:54 +0000
commitf75e1c59aacf5ce668fd327e4e3d827511661c2a (patch)
tree867926c7503e7c587e86c67896a9e7347600447b /src/nostr/builder.rs
parent3f14f998d64b5fa15bdddd7570b4f72874eb9f29 (diff)
chore: cargo fmt
Diffstat (limited to 'src/nostr/builder.rs')
-rw-r--r--src/nostr/builder.rs9
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