mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-26 19:48:34 +00:00
config
This commit is contained in:
@@ -2,6 +2,13 @@ package broker
|
||||
|
||||
import "sync"
|
||||
|
||||
const (
|
||||
MaxUser = 1024 * 1024
|
||||
MessagePoolNum = 1024
|
||||
MessagePoolUser = MaxUser / MessagePoolNum
|
||||
MessagePoolMessageNum = MaxUser / MessagePoolNum * 4
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
client *client
|
||||
msg []byte
|
||||
|
||||
Reference in New Issue
Block a user