Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Raw Node Interface should be a 4-tier title #186

Open
wants to merge 7 commits into
base: course
Choose a base branch
from
2 changes: 1 addition & 1 deletion doc/project2-RaftKV.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To implement log replication, you may want to start with handling `MsgAppend` an

You can run `make project2ab` to test the implementation, and see some hints at the end of this part.

### Implement the raw node interface
#### Implement the raw node interface

`raft.RawNode` in `raft/rawnode.go` is the interface we interact with the upper application, `raft.RawNode` contains `raft.Raft` and provide some wrapper functions like `RawNode.Tick()`and `RawNode.Step()`. It also provides `RawNode.Propose()` to let the upper application propose new raft logs.

Expand Down