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

@ -159,7 +159,7 @@ func TestStopRaftWhenWaitingForApplyDone(t *testing.T) {
raftStorage: raft.NewMemoryStorage(),
transport: rafthttp.NewNopTransporter(),
}}
srv.r.start(&raftReadyHandler{sendMessage: func(msgs []raftpb.Message) { srv.send(msgs) }})
srv.r.start(nil)
n.readyc <- raft.Ready{}
select {
case <-srv.r.applyc: