This commit is contained in:
zhouyuyan
2017-09-04 16:57:01 +08:00
parent 5e937601ce
commit 8af790ffba
5 changed files with 21 additions and 6 deletions

View File

@@ -1,14 +1,16 @@
package broker
const (
WorkNum = 4096
)
// const (
// WorkNum = 4096
// )
var WorkNum int
type Dispatcher struct {
WorkerPool chan chan *Message
}
func init() {
func StartDispatcher() {
InitMessagePool()
dispatcher := NewDispatcher()
dispatcher.Run()