raft: isStateEqual -> isHardStateEqual, IsEmptyState -> IsEmptyHardState

This commit is contained in:
Yicheng Qin
2014-09-16 13:55:00 -07:00
parent 023dc7cba2
commit de21c39ca5
4 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ func Example_Node() {
for {
// ReadState blocks until there is new state ready.
rd := <-n.Ready()
if !isStateEqual(prev, rd.HardState) {
if !isHardStateEqual(prev, rd.HardState) {
saveStateToDisk(rd.HardState)
prev = rd.HardState
}