From ad307c69650515696ea689d246947179a68e5abb Mon Sep 17 00:00:00 2001 From: Blake Mizerany Date: Mon, 25 Aug 2014 12:49:23 -0700 Subject: [PATCH] raft: go fmt --- raft/raft_test.go | 6 +++--- raft/snapshot.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/raft/raft_test.go b/raft/raft_test.go index 4d81ed662..253d802aa 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -792,9 +792,9 @@ func TestRecvMsgBeat(t *testing.T) { func TestRestore(t *testing.T) { s := Snapshot{ - Index: defaultCompactThreshold + 1, - Term: defaultCompactThreshold + 1, - Nodes: []int64{0, 1, 2}, + Index: defaultCompactThreshold + 1, + Term: defaultCompactThreshold + 1, + Nodes: []int64{0, 1, 2}, } sm := newRaft(0, []int64{0, 1}) diff --git a/raft/snapshot.go b/raft/snapshot.go index 61893391d..1a20b4367 100644 --- a/raft/snapshot.go +++ b/raft/snapshot.go @@ -3,7 +3,7 @@ package raft var emptySnapshot = Snapshot{} type Snapshot struct { - Data []byte + Data []byte // the configuration Nodes []int64 // the index at which the snapshot was taken.