mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: go fmt
This commit is contained in:
parent
7486d3d4c5
commit
ad307c6965
@ -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})
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user