Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Dec 12, 2023
1 parent 4dd4b51 commit 2f2766e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tasks/finalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const TIME_BETWEEN_FINALIZATIONS_SECONDS: i64 = 60;

pub async fn finalize_txs(app: Arc<App>) -> eyre::Result<()> {
loop {
let finalization_timestmap =
let finalization_timestamp =
chrono::Utc::now() - chrono::Duration::seconds(60 * 60);

tracing::info!(
"Finalizing txs mined before {}",
finalization_timestmap
finalization_timestamp
);

app.db.finalize_txs(finalization_timestmap).await?;
app.db.finalize_txs(finalization_timestamp).await?;

tokio::time::sleep(Duration::from_secs(
TIME_BETWEEN_FINALIZATIONS_SECONDS as u64,
Expand Down

0 comments on commit 2f2766e

Please sign in to comment.