config
This commit is contained in:
1 parent
0bc226d071
commit
0ea7da1dc0
8 files changed
+91
-25
No files matched your search
@@ -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