From d004affea94ca18294b8a06c424e55d5657071fd Mon Sep 17 00:00:00 2001 From: arkanoider Date: Fri, 11 Oct 2024 11:48:06 +0200 Subject: [PATCH] fixed a missing error check on await fn to update correctly db order status to expired --- src/util.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index c9e0cf22..184f68af 100644 --- a/src/util.rs +++ b/src/util.rs @@ -315,7 +315,9 @@ pub async fn update_order_event(keys: &Keys, status: Status, order: &Order) -> R status.to_string() ); - NOSTR_CLIENT.get().unwrap().send_event(event).await?; + if NOSTR_CLIENT.get().unwrap().send_event(event).await.is_err(){ + tracing::warn!("order id : {} is expired", order_updated.id) + } println!( "Inside update_order_event order_updated status {:?} - order id {:?}",