Skip to content

Commit

Permalink
feat(topolotree): implement core fault tolerance protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj committed Nov 29, 2023
1 parent 75c4275 commit 375a10f
Show file tree
Hide file tree
Showing 10 changed files with 295 additions and 792 deletions.
21 changes: 12 additions & 9 deletions hydro_cli/src/core/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ impl Deployment {
.collect::<Vec<_>>();
self.services = active_services;

let all_services_start =
self.services
.iter()
.map(|service: &Weak<RwLock<dyn Service>>| async {
service.upgrade().unwrap().write().await.start().await?;
Ok(()) as Result<()>
});

futures::future::try_join_all(all_services_start).await?;
progress::ProgressTracker::with_group("start", None, || {
let all_services_start =
self.services
.iter()
.map(|service: &Weak<RwLock<dyn Service>>| async {
service.upgrade().unwrap().write().await.start().await?;
Ok(()) as Result<()>
});

futures::future::try_join_all(all_services_start)
})
.await?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion hydro_cli/src/core/hydroflow_crate/ports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl HydroflowSink for HydroflowPortConfig {
merge.push(bind_type);
merge.len() - 1
} else {
panic!()
panic!("Expected a merge connection definition")
};

ServerConfig::MergeSelect(Box::new(base_config), merge_index)
Expand Down
164 changes: 0 additions & 164 deletions hydro_cli_examples/examples/pn_counter/main.rs

This file was deleted.

165 changes: 0 additions & 165 deletions hydro_cli_examples/examples/pn_counter_delta/main.rs

This file was deleted.

Loading

0 comments on commit 375a10f

Please sign in to comment.