From 26e32279eb67e609d88abb7dcad027aa80304643 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Mon, 20 May 2024 23:44:23 +0900 Subject: [PATCH] Replace right function --- src/future/order.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/future/order.rs b/src/future/order.rs index 8d95482..c45ceb3 100644 --- a/src/future/order.rs +++ b/src/future/order.rs @@ -157,7 +157,7 @@ pub async fn limit_order_entry( let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())]; update_record2(&update_table_name, &update_values, &update_condition) - .await?; + .await.unwrap(); sub_future_available_usdt(used_usdt).await; @@ -270,7 +270,7 @@ pub async fn limit_order_entry( let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())]; update_record2(&update_table_name, &update_values, &update_condition) - .await?; + .await.unwrap(); } }, Err(e) => { @@ -957,7 +957,7 @@ pub async fn sub_future_available_usdt(sub_usdt: Decimal) { let update_values = vec![(String::from("available_usdt"), value_build)]; let update_condition = vec![(String::from("id"), String::from("1"))]; - update_record2(&update_table_name, &update_values, &update_condition) + update_record3(&update_table_name, &update_values, &update_condition) .await .unwrap(); }