Skip to content

Commit

Permalink
chore: fix typo (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
0XFF-96 authored May 21, 2020
1 parent e620983 commit b4a7a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proto/pkg/eraftpb/eraftpb.pb.go

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

4 changes: 2 additions & 2 deletions proto/proto/eraftpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ message Entry {
bytes data = 4;
}

// SnapshotMetadata cantains the log index and term of the last log applied to this
// SnapshotMetadata contains the log index and term of the last log applied to this
// Snapshot, along with the membership information of the time the last log applied.
message SnapshotMetadata {
ConfState conf_state = 1;
Expand All @@ -40,7 +40,7 @@ message Snapshot {
// also use the Step method to handle
enum MessageType {
// 'MessageType_MsgHup' is a local message used for election. If an election timeout happened,
// the node should passes 'MessageType_MsgHup' to its Step method and start a new election.
// the node should pass 'MessageType_MsgHup' to its Step method and start a new election.
MsgHup = 0;
// 'MessageType_MsgBeat' is a local message that signals the leader to send a heartbeat
// of the 'MessageType_MsgHeartbeat' type to its followers.
Expand Down

0 comments on commit b4a7a56

Please sign in to comment.