mirror of
https://github.com/fhmq/hmq.git
synced 2026-06-15 17:51:33 +00:00
d
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package lib
|
||||
|
||||
import "sync"
|
||||
|
||||
type MessagePool struct {
|
||||
sync.Mutex
|
||||
queue chan *Message
|
||||
}
|
||||
|
||||
func (p *MessagePool) Init(len int, maxusernum int) {
|
||||
p.maxuser = maxusernum
|
||||
p.queue = make(chan *Message, len)
|
||||
}
|
||||
Reference in New Issue
Block a user