Replace right function

This commit is contained in:
Sik Yoon 2024-05-20 23:44:23 +09:00
parent e68804aaf7
commit 26e32279eb

View File

@ -157,7 +157,7 @@ pub async fn limit_order_entry(
let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())]; let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())];
update_record2(&update_table_name, &update_values, &update_condition) update_record2(&update_table_name, &update_values, &update_condition)
.await?; .await.unwrap();
sub_future_available_usdt(used_usdt).await; 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())]; let update_condition = vec![(String::from("id"), entry_coin_info.id.to_string())];
update_record2(&update_table_name, &update_values, &update_condition) update_record2(&update_table_name, &update_values, &update_condition)
.await?; .await.unwrap();
} }
}, },
Err(e) => { 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_values = vec![(String::from("available_usdt"), value_build)];
let update_condition = vec![(String::from("id"), String::from("1"))]; 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 .await
.unwrap(); .unwrap();
} }