raft: whoops

release-2.0
Blake Mizerany 2014-08-22 17:04:51 -07:00 committed by Yicheng Qin
parent c312d6efad
commit 10eb997621
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func Example_Node() {
log.Fatal(err)
}
if prev.Equal(st) {
if !prev.Equal(st) {
saveStateToDisk(st)
prev = st
}