This commit is contained in:
wangchuxiao 2022-09-15 09:16:08 +08:00
parent 355c672ed1
commit 9afaba4382

View File

@ -37,7 +37,9 @@ var (
func Init() { func Init() {
cmdCh = make(chan Cmd2Value, 10000) cmdCh = make(chan Cmd2Value, 10000)
w = new(sync.Mutex) w = new(sync.Mutex)
if config.Config.Prometheus.Enable {
initPrometheus() initPrometheus()
}
persistentCH.Init() // ws2mschat save mysql persistentCH.Init() // ws2mschat save mysql
historyCH.Init(cmdCh) // historyCH.Init(cmdCh) //
historyMongoCH.Init() historyMongoCH.Init()