Skip to content

Commit

Permalink
fix log.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuchichan committed Mar 11, 2024
1 parent 6d0a29b commit c66651b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions explorer/src/service/v1/price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ pub async fn simple_price(
);
let resp1 = reqwest::get(url).await;
if let Err(e) = resp1 {
error!("Get FRA price: {}", e.to_string());
let fra_price = get_fra_price(api).await?;
return Ok(SimplePriceResponse::Ok(Json(SimplePriceResult {
code: 200,
Expand All @@ -126,7 +125,6 @@ pub async fn simple_price(

let resp2 = resp1?.json::<SimplePrice>().await;
if let Err(e) = resp2 {
error!("Parse FRA price: {}", e.to_string());
let fra_price = get_fra_price(api).await?;
return Ok(SimplePriceResponse::Ok(Json(SimplePriceResult {
code: 200,
Expand Down Expand Up @@ -173,7 +171,6 @@ pub async fn market_chart(
}
let resp1 = reqwest::get(url).await;
if let Err(e) = resp1 {
error!("Get FRA market error: {:?}", e);
let fmc = get_fra_market(api).await?;
return Ok(MarketChartResponse::Ok(Json(MarketChartResult {
code: 200,
Expand All @@ -183,7 +180,6 @@ pub async fn market_chart(
}
let resp2 = resp1?.json::<FraMarketChart>().await;
if let Err(e) = resp2 {
error!("Parse FRA market cap error: {:?}", e);
let fmc = get_fra_market(api).await?;
return Ok(MarketChartResponse::Ok(Json(MarketChartResult {
code: 200,
Expand Down

0 comments on commit c66651b

Please sign in to comment.