Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Sep 1, 2024
1 parent 258118b commit df65aee
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,13 @@ async fn server_main(config: Config) -> eyre::Result<()> {
tracing::info!("Preparing task monitor");
let mut background_tasks = TaskMonitor::new();

// let (tx, rx) = oneshot::channel();
// let _heartbeat = background_tasks.spawn(start_heartbeat(config.party_id,
// tx));

// background_tasks.check_tasks();
// tracing::info!("Heartbeat starting...");
// rx.await??;
// tracing::info!("Heartbeat started.");
let (tx, rx) = oneshot::channel();
let _heartbeat = background_tasks.spawn(start_heartbeat(config.party_id, tx));

background_tasks.check_tasks();
tracing::info!("Heartbeat starting...");
rx.await??;
tracing::info!("Heartbeat started.");

// a bit convoluted, but we need to create the actor on the thread already,
// since it blocks a lot and is `!Send`, we get back the handle via the oneshot
Expand Down

0 comments on commit df65aee

Please sign in to comment.