Skip to content

Commit

Permalink
Rm unnecessary async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Aug 30, 2024
1 parent e51c5fb commit 80f887e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequencer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async fn head(sequencer: &State<ArcSequencer>) -> Value {
}

/// Infinitely seals blocks at a fixed period.
async fn seal_blocks_loop(sequencer: ArcSequencer) {
fn seal_blocks_loop(sequencer: ArcSequencer) {
tokio::task::spawn(async move {
loop {
let block = sequencer.clone().await;
Expand All @@ -48,7 +48,7 @@ async fn rocket() -> _ {
let sequencer = ArcSequencer::new(sk.as_str());

// Spawn block producing sequencer task.
seal_blocks_loop(sequencer.clone()).await;
seal_blocks_loop(sequencer.clone());

// Launch the HTTP server.
let config = Config {
Expand Down

0 comments on commit 80f887e

Please sign in to comment.