raft: go fmt

This commit is contained in:
Blake Mizerany 2014-08-25 12:49:23 -07:00 committed by Yicheng Qin
parent 7486d3d4c5
commit ad307c6965
2 changed files with 4 additions and 4 deletions

View File

@ -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})

View File

@ -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.