Skip to content

Commit

Permalink
fixed a missing error check on await fn to update correctly db order …
Browse files Browse the repository at this point in the history
…status to expired (#367)
  • Loading branch information
arkanoider authored Oct 15, 2024
1 parent 993fc31 commit a607d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,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 {:?}",
Expand Down

0 comments on commit a607d61

Please sign in to comment.