diff --git a/src/future/order.rs b/src/future/order.rs index 9dcfcda..0935142 100644 --- a/src/future/order.rs +++ b/src/future/order.rs @@ -160,8 +160,7 @@ pub async fn limit_order_entry( let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())]; update_record3(&update_table_name, &update_values, &update_condition) - .await - .unwrap(); + .await?; sub_future_available_usdt(used_usdt).await; @@ -274,8 +273,7 @@ pub async fn limit_order_entry( let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())]; update_record3(&update_table_name, &update_values, &update_condition) - .await - .unwrap(); + .await?; } }, Err(e) => {