From 9934c5b70b0d2e94ae9be2aaf7af6db667e87757 Mon Sep 17 00:00:00 2001 From: canonbrother Date: Thu, 19 Dec 2024 20:54:11 +0800 Subject: [PATCH] update get_price api --- lib/ain-ocean/src/api/prices.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ain-ocean/src/api/prices.rs b/lib/ain-ocean/src/api/prices.rs index 2d4999900f..e1dd0ebf28 100644 --- a/lib/ain-ocean/src/api/prices.rs +++ b/lib/ain-ocean/src/api/prices.rs @@ -157,7 +157,7 @@ async fn get_price( }; let price_ticker = price_repo.by_id.get(&sort_key)?; - let Some((_, price_ticker)) = price_ticker else { + let Some(price_ticker) = price_ticker else { return Ok(Response::new(None)); };