Change code not to show unnecessary error print

This commit is contained in:
Sik Yoon 2024-05-20 03:57:57 +09:00
parent 3152d79e5c
commit 162ff464c3

View File

@ -832,6 +832,7 @@ pub async fn get_last_price(client: &Client, price_map: &mut HashMap<String, f64
match element.0.as_str() {
"symbol" => symbol = element.1.as_str().unwrap().to_string(),
"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.");
}