test
This commit is contained in:
parent
15b04af898
commit
fb46d01e59
18
def.go
18
def.go
@ -211,13 +211,17 @@ const (
|
|||||||
objJobPriorityRescanChildMsg = 3
|
objJobPriorityRescanChildMsg = 3
|
||||||
objJobPriorityRescanAllMsg = 4
|
objJobPriorityRescanAllMsg = 4
|
||||||
|
|
||||||
MQGetMsgWorkers = 12
|
MQGetMsgWorkers = 12
|
||||||
SQLCWMsgWorkers = 6
|
MQCWMsgQueueSize = 100
|
||||||
SQLIdentifyMsgWorkers = 6
|
SQLCWMsgWorkers = 6
|
||||||
SQLJobWorkers = 3
|
SQLIdentifyMsgWorkers = 6
|
||||||
TGCmdWorkers = 3
|
SQLMsgIdentifyQueueSize = 1000
|
||||||
MQTGCmdWorkers = 3
|
SQLJobWorkers = 12
|
||||||
SQLJobSliceSize = 25
|
TGCmdWorkers = 3
|
||||||
|
TGCmdQueueSize = 100
|
||||||
|
MQTGCmdWorkers = 3
|
||||||
|
MQTGCmdQueueSize = 100
|
||||||
|
SQLJobSliceSize = 250
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
8
main.go
8
main.go
@ -105,10 +105,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
b.Send(&u, "Bot restarted")
|
b.Send(&u, "Bot restarted")
|
||||||
|
|
||||||
MQCWMsgQueue = make(chan ChatWarsMessage, 100)
|
MQCWMsgQueue = make(chan ChatWarsMessage, MQCWMsgQueueSize)
|
||||||
SQLMsgIdentifyQueue = make(chan int64, 100)
|
SQLMsgIdentifyQueue = make(chan int64, SQLMsgIdentifyQueueSize)
|
||||||
TGCmdQueue = make(chan TGCommand, 100)
|
TGCmdQueue = make(chan TGCommand, TGCmdQueueSize)
|
||||||
MQTGCmdQueue = make(chan TGCommand, 100)
|
MQTGCmdQueue = make(chan TGCommand, MQTGCmdQueueSize)
|
||||||
clientsQueue = make(map[int64]*MQClient)
|
clientsQueue = make(map[int64]*MQClient)
|
||||||
clientsKeepAlive = make(map[int64]*MQKeepAlive)
|
clientsKeepAlive = make(map[int64]*MQKeepAlive)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user