mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-26 19:48:34 +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