tiny change for softstate comment

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
Connor1996 2020-07-22 11:01:27 +08:00
parent 2792ccd03e
commit 284b736572

View File

@ -27,10 +27,9 @@ var ErrStepLocalMsg = errors.New("raft: cannot step raft local message")
// but there is no peer found in raft.Prs for that node.
var ErrStepPeerNotFound = errors.New("raft: cannot step as peer not found")
// SoftState provides state that is useful for logging and debugging.
// The state is volatile and does not need to be persisted to the WAL.
// SoftState provides state that is volatile and does not need to be persisted to the WAL.
type SoftState struct {
Lead uint64 // must use atomic operations to access; keep 64-bit aligned.
Lead uint64
RaftState StateType
}