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(); }