mirror of
https://github.com/fhmq/hmq.git
synced 2026-09-01 15:24:53 +00:00
broker
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user