Skip to content

Commit

Permalink
fix sleep millis instead of secs
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Nov 19, 2024
1 parent 4c5af89 commit e452129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/da_dispatcher/src/da_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl DataAvailabilityDispatcher {
}

// Sleep so we prevent hammering the database
tokio::time::sleep(Duration::from_secs(
tokio::time::sleep(Duration::from_millis(
self.config
.polling_interval_ms
.unwrap_or(DEFAULT_POLLING_INTERVAL_MS) as u64,
Expand Down Expand Up @@ -298,7 +298,7 @@ impl DataAvailabilityDispatcher {
}

// Sleep so we prevent hammering the database
tokio::time::sleep(Duration::from_secs(
tokio::time::sleep(Duration::from_millis(
self.config
.polling_interval_ms
.unwrap_or(DEFAULT_POLLING_INTERVAL_MS) as u64,
Expand Down

0 comments on commit e452129

Please sign in to comment.