mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-10 20:15:59 +08:00
remove mysql for test
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"Open_IM/pkg/common/constant"
|
||||
"Open_IM/pkg/common/kafka"
|
||||
"Open_IM/pkg/common/log"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -33,4 +34,15 @@ func init() {
|
||||
func Run() {
|
||||
go rpcServer.run()
|
||||
go pushCh.pushConsumerGroup.RegisterHandleAndConsumer(&pushCh)
|
||||
go stat()
|
||||
}
|
||||
func stat() {
|
||||
t := time.NewTicker(time.Second * 10)
|
||||
defer t.Stop()
|
||||
for {
|
||||
select {
|
||||
case <-t.C:
|
||||
}
|
||||
log.Debug("", "10 second handle msg to mongo is ")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user