etcdserver: move 'EtcdServer.send' to raft.go

Clear 'TODO'
This commit is contained in:
Gyu-Ho Lee
2016-10-26 16:26:00 -07:00
parent 8825392da2
commit 6ec03d3f7c
4 changed files with 70 additions and 63 deletions

View File

@ -971,14 +971,15 @@ func TestConcurrentApplyAndSnapshotV3(t *testing.T) {
DataDir: testdir,
},
r: raftNode{
isIDRemoved: func(id uint64) bool { return cl.IsIDRemoved(types.ID(id)) },
Node: n,
transport: tr,
storage: mockstorage.NewStorageRecorder(testdir),
raftStorage: rs,
msgSnapC: make(chan raftpb.Message, maxInFlightMsgSnap),
},
store: st,
cluster: cl,
msgSnapC: make(chan raftpb.Message, maxInFlightMsgSnap),
store: st,
cluster: cl,
}
s.applyV2 = &applierV2store{store: s.store, cluster: s.cluster}