From b9621ccc72ddab78c8f8af4ff2c294a72ff00be5 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Mon, 20 May 2024 22:41:25 +0900 Subject: [PATCH] Remove unwrap() --- src/future/order.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) => {