From b4a7a561f8826ca0d222f74118e70efb28037560 Mon Sep 17 00:00:00 2001 From: klaus <13420134410@163.com> Date: Fri, 22 May 2020 02:55:09 +0800 Subject: [PATCH] chore: fix typo (#180) --- proto/pkg/eraftpb/eraftpb.pb.go | 4 ++-- proto/proto/eraftpb.proto | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/pkg/eraftpb/eraftpb.pb.go b/proto/pkg/eraftpb/eraftpb.pb.go index c26392c6..a275f5cb 100644 --- a/proto/pkg/eraftpb/eraftpb.pb.go +++ b/proto/pkg/eraftpb/eraftpb.pb.go @@ -51,7 +51,7 @@ type MessageType int32 const ( // '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. MessageType_MsgHup MessageType = 0 // 'MessageType_MsgBeat' is a local message that signals the leader to send a heartbeat // of the 'MessageType_MsgHeartbeat' type to its followers. @@ -219,7 +219,7 @@ func (m *Entry) GetData() []byte { return nil } -// 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. type SnapshotMetadata struct { ConfState *ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState" json:"conf_state,omitempty"` diff --git a/proto/proto/eraftpb.proto b/proto/proto/eraftpb.proto index a47a0f80..1c7c46be 100644 --- a/proto/proto/eraftpb.proto +++ b/proto/proto/eraftpb.proto @@ -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; @@ -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.