Skip to content

Commit

Permalink
refactor: madsim
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Apr 19, 2024
1 parent afef71a commit 8d89b0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/curp/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ impl<C: Command, RC: RoleChange> Rpc<C, RC> {
storage: Arc<DB<C>>,
task_manager: Arc<TaskManager>,
client_tls_config: Option<ClientTlsConfig>,
sps: Vec<SpObject<C>>,
ucps: Vec<UcpObject<C>>,
) -> Result<(), crate::error::ServerError>
where
CE: CommandExecutor<C>,
Expand All @@ -311,6 +313,8 @@ impl<C: Command, RC: RoleChange> Rpc<C, RC> {
storage,
task_manager,
client_tls_config,
sps,
ucps,
)
.await;

Expand Down
7 changes: 6 additions & 1 deletion crates/simulation/src/curp_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ use curp::{
ConfChange, FetchClusterRequest, FetchClusterResponse, Member, ProposeConfChangeRequest,
ProposeConfChangeResponse, ReadState,
},
server::{Rpc, StorageApi, DB},
server::{
conflict::test_pools::{TestSpecPool, TestUncomPool},
Rpc, StorageApi, DB,
},
LogIndex,
};
use curp_test_utils::{
Expand Down Expand Up @@ -132,6 +135,8 @@ impl CurpGroup {
curp_storage,
task_manager,
None,
vec![Box::<TestSpecPool>::default()],
vec![Box::<TestUncomPool>::default()],
)
})
.build();
Expand Down

0 comments on commit 8d89b0e

Please sign in to comment.