Replace right function
This commit is contained in:
parent
e68804aaf7
commit
26e32279eb
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user