Change code not to show unnecessary error print
This commit is contained in:
parent
3152d79e5c
commit
162ff464c3
|
|
@ -832,6 +832,7 @@ pub async fn get_last_price(client: &Client, price_map: &mut HashMap<String, f64
|
||||||
match element.0.as_str() {
|
match element.0.as_str() {
|
||||||
"symbol" => symbol = element.1.as_str().unwrap().to_string(),
|
"symbol" => symbol = element.1.as_str().unwrap().to_string(),
|
||||||
"price" => price = element.1.as_str().unwrap().parse::<f64>().unwrap(),
|
"price" => price = element.1.as_str().unwrap().parse::<f64>().unwrap(),
|
||||||
|
"time" => {},
|
||||||
_ => {
|
_ => {
|
||||||
log::error!("Elements in body msg are changed. Please update both your coinprices table and vectors.");
|
log::error!("Elements in body msg are changed. Please update both your coinprices table and vectors.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user