Skip to content

Commit

Permalink
Reuse functions from paxos
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchuyaya committed Feb 7, 2025
1 parent 268c085 commit b78fde3
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 572 deletions.
11 changes: 7 additions & 4 deletions hydro_test/examples/compartmentalized_paxos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use hydro_deploy::gcp::GcpNetwork;
use hydro_deploy::{Deployment, Host};
use hydro_lang::deploy::TrybuildHost;
use hydro_test::cluster::compartmentalized_paxos::CompartmentalizedPaxosConfig;
use hydro_test::cluster::paxos::PaxosConfig;
use tokio::sync::RwLock;

type HostCreator = Box<dyn Fn(&mut Deployment) -> Arc<dyn Host>>;
Expand Down Expand Up @@ -55,10 +56,12 @@ async fn main() {
median_latency_window_size,
checkpoint_frequency,
CompartmentalizedPaxosConfig {
f,
i_am_leader_send_timeout,
i_am_leader_check_timeout,
i_am_leader_check_timeout_delay_multiplier,
paxos_config: PaxosConfig {
f,
i_am_leader_send_timeout,
i_am_leader_check_timeout,
i_am_leader_check_timeout_delay_multiplier,
},
num_proxy_leaders,
acceptor_grid_rows,
acceptor_grid_cols,
Expand Down
Loading

0 comments on commit b78fde3

Please sign in to comment.