Skip to content

Commit

Permalink
fix(hubble): re-enable indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed May 31, 2024
1 parent a061a95 commit 355fb7c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hubble/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 355fb7c

Please sign in to comment.