This commit is contained in:
shoopea 2019-05-17 15:13:48 +08:00
parent 4a16193666
commit 54022a26a8

View File

@ -50,7 +50,7 @@ var (
TGCmdQueue chan TGCommand
MQTGCmdQueue chan TGCommand
msgParsingRules map[int]MessageParsingRule
clientsQueues map[int64]MQKeepAlive
clientsQueues map[int64]*MQKeepAlive
)
func PrintText(m *tb.Message) {
@ -108,7 +108,7 @@ func main() {
SQLMsgIdentifyQueue = make(chan int64, 100)
TGCmdQueue = make(chan TGCommand, 100)
MQTGCmdQueue = make(chan TGCommand, 100)
clientsQueues = make(map[int64]MQKeepAlive)
clientsQueues = make(map[int64]*MQKeepAlive)
for w := 1; w <= MQGetMsgWorkers; w++ {
go MQGetMsgWorker(w, MQCWMsgQueue)