Skip to content

Commit

Permalink
fix: use tokio so tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed Feb 26, 2024
1 parent a7082c8 commit caf2f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkpointer/src/calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Calculator {
}

pub fn run(self) {
actix_web::rt::spawn(run(self));
tokio::spawn(run(self));
}
}

Expand Down
2 changes: 1 addition & 1 deletion checkpointer/src/event_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl EventSource {
pub fn run(self) -> RunningEventSource {
let (tx, rx) = tokio::sync::mpsc::channel(100);
let shutdown = Arc::new(AtomicBool::new(false));
let join = actix_web::rt::spawn(run(self, tx, shutdown.clone()));
let join = tokio::spawn(run(self, tx, shutdown.clone()));
RunningEventSource { shutdown, rx, join }
}
}
Expand Down

0 comments on commit caf2f12

Please sign in to comment.