Skip to content

Commit

Permalink
Finalizing abstractions and adding simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-io committed Aug 16, 2021
1 parent f3178ef commit 0e0d8fb
Show file tree
Hide file tree
Showing 9 changed files with 255 additions and 386 deletions.
100 changes: 0 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]
members = [
"example",
"little_raft"
]
15 changes: 0 additions & 15 deletions example/Cargo.toml

This file was deleted.

188 changes: 0 additions & 188 deletions example/src/main.rs

This file was deleted.

3 changes: 2 additions & 1 deletion little_raft/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ where
// distributed state machine needs to replicate and apply. All replicas poll
// this function periodically but only Leaders merit the return value.
// Non-Leaders ignore the return value of get_action.
fn get_transitions(&self) -> Vec<T>;
fn get_pending_transitions(&self) -> Vec<T>;
fn register_leader_change(&mut self, leader_id: Option<usize>);
}
Loading

0 comments on commit 0e0d8fb

Please sign in to comment.