From 4a0bf23d1f8a55233db856c4ca32969280ed56ce Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 18 May 2018 14:39:47 -0700 Subject: [PATCH] contrib/raftexample: rename "snapCount" Signed-off-by: Gyuho Lee --- contrib/raftexample/raft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/raftexample/raft.go b/contrib/raftexample/raft.go index 0774ceed7..18c720d83 100644 --- a/contrib/raftexample/raft.go +++ b/contrib/raftexample/raft.go @@ -71,7 +71,7 @@ type raftNode struct { httpdonec chan struct{} // signals http server shutdown complete } -var defaultSnapCount uint64 = 10000 +var defaultSnapshotCount uint64 = 10000 // newRaftNode initiates a raft instance and returns a committed log entry // channel and error channel. Proposals for log updates are sent over the @@ -95,7 +95,7 @@ func newRaftNode(id int, peers []string, join bool, getSnapshot func() ([]byte, waldir: fmt.Sprintf("raftexample-%d", id), snapdir: fmt.Sprintf("raftexample-%d-snap", id), getSnapshot: getSnapshot, - snapCount: defaultSnapCount, + snapCount: defaultSnapshotCount, stopc: make(chan struct{}), httpstopc: make(chan struct{}), httpdonec: make(chan struct{}),