From e6027df0e3c19ae84ce9ece7f7f82fbe0587b3f6 Mon Sep 17 00:00:00 2001 From: "chenyangyang.cy" Date: Fri, 18 Aug 2023 16:22:32 +0800 Subject: [PATCH] Fmt code Signed-off-by: chenyangyang.cy --- contrib/raftexample/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/raftexample/raft.go b/contrib/raftexample/raft.go index 0373ea789544..18b5354dd328 100644 --- a/contrib/raftexample/raft.go +++ b/contrib/raftexample/raft.go @@ -398,7 +398,7 @@ func (rc *raftNode) maybeTriggerSnapshot(applyDoneC <-chan struct{}) { } else { log.Printf("compacted log at index %d", compactIndex) } - + rc.snapshotIndex = rc.appliedIndex }