From 53293d1df11a2ab01ed55043640f213c0cccb7c7 Mon Sep 17 00:00:00 2001 From: shufps Date: Fri, 6 Oct 2023 08:02:41 +0200 Subject: [PATCH] formatted source --- src/bin/inx-chronicle/api/explorer/routes.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bin/inx-chronicle/api/explorer/routes.rs b/src/bin/inx-chronicle/api/explorer/routes.rs index f9376690a..73af7221b 100644 --- a/src/bin/inx-chronicle/api/explorer/routes.rs +++ b/src/bin/inx-chronicle/api/explorer/routes.rs @@ -40,9 +40,9 @@ use crate::api::{ ApiResult, }; -use std::time::{Instant, Duration}; -use tokio::sync::{RwLock}; use once_cell::sync::Lazy; +use std::time::{Duration, Instant}; +use tokio::sync::RwLock; pub fn routes() -> Router { Router::new() @@ -378,7 +378,10 @@ async fn richest_addresses_ledger_analytics( }; // Store the response in the cache - *RICHEST_ADDRESSES_CACHE.write().await = Some(RichestCacheData { last_updated: Instant::now(), data: response.clone() }); + *RICHEST_ADDRESSES_CACHE.write().await = Some(RichestCacheData { + last_updated: Instant::now(), + data: response.clone(), + }); Ok(response) } @@ -409,7 +412,10 @@ async fn token_distribution_ledger_analytics( }; // Store the response in the cache - *TOKEN_DISTRIBUTION_CACHE.write().await = Some(TokenCacheData { last_updated: Instant::now(), data: response.clone() }); + *TOKEN_DISTRIBUTION_CACHE.write().await = Some(TokenCacheData { + last_updated: Instant::now(), + data: response.clone(), + }); Ok(response) }