From 6971a63bb98d02e07c96a84c3970665cf84a08bf Mon Sep 17 00:00:00 2001 From: chinyuchan Date: Wed, 28 Feb 2024 11:16:48 +0800 Subject: [PATCH] optimize. --- explorer/src/service/v1/price.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/explorer/src/service/v1/price.rs b/explorer/src/service/v1/price.rs index 00d392b..a4882d9 100644 --- a/explorer/src/service/v1/price.rs +++ b/explorer/src/service/v1/price.rs @@ -94,8 +94,7 @@ pub async fn upsert_fra_market(api: &Api, val: Value) -> Result<()> { .bind("fra") .bind(val) .execute(&mut conn) - .await - .unwrap(); + .await?; Ok(()) }