Skip to content

Commit

Permalink
update scan interval. (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyuchan authored Jul 5, 2024
1 parent a60b574 commit 44dd13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scanner/src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl Scanner {
Ok(succeed_cnt.load(Ordering::Acquire))
}

pub async fn run(&self, start: u64, _interval: Duration, single: bool) -> Result<()> {
pub async fn run(&self, start: u64, interval: Duration, single: bool) -> Result<()> {
match single {
true => {
info!("Single syncing...");
Expand Down Expand Up @@ -484,7 +484,7 @@ impl Scanner {
error!("Get block {} error: {:?}", height, e);
}
}
//tokio::time::sleep(interval).await;
tokio::time::sleep(interval).await;
}
}
}
Expand Down

0 comments on commit 44dd13e

Please sign in to comment.