From 355fb7cd133f51c7412bc4b0e978afdd7ef4d3fa Mon Sep 17 00:00:00 2001 From: cor Date: Fri, 31 May 2024 15:13:52 +0200 Subject: [PATCH] fix(hubble): re-enable indexers --- hubble/src/main.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hubble/src/main.rs b/hubble/src/main.rs index 62d403a775..be792eec8b 100644 --- a/hubble/src/main.rs +++ b/hubble/src/main.rs @@ -67,17 +67,17 @@ async fn main() -> color_eyre::eyre::Result<()> { let indexers = args.indexers.clone(); - // let client_updates = async move { - // let mut interval = tokio::time::interval(Duration::from_secs(10 * 60)); + let client_updates = async move { + let mut interval = tokio::time::interval(Duration::from_secs(10 * 60)); - // loop { - // info!("fetching new client counterparty_chain_ids"); - // chain_id_query::tx(db.clone(), indexers.clone()).await; - // interval.tick().await; - // } - // }; + loop { + info!("fetching new client counterparty_chain_ids"); + chain_id_query::tx(db.clone(), indexers.clone()).await; + interval.tick().await; + } + }; - // set.spawn(client_updates); + set.spawn(client_updates); while let Some(res) = set.join_next().await { match res {