This commit is contained in:
zhouyuyan
2018-01-31 10:59:59 +08:00
parent 91733bf91e
commit b3653bcfb1

View File

@@ -34,10 +34,8 @@ func (d *Dispatcher) dispatch() {
for {
select {
case msg := <-MSGPool[idx].queue:
go func(msg *Message) {
msgChannel := <-d.WorkerPool
msgChannel <- msg
}(msg)
}
}
}(i)