no message

This commit is contained in:
sk 2024-10-24 10:24:47 +08:00
parent 07e252aa1d
commit 6693bf7438
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,6 @@ import (
_ "mongo.games.com/game"
"mongo.games.com/game/common"
"mongo.games.com/game/db"
_ "mongo.games.com/game/dbproxy/mq"
"mongo.games.com/game/dbproxy/svc"
"mongo.games.com/game/model"
@ -42,7 +41,7 @@ func main() {
go http.Serve(lis, nil)
// grpc 服务
go db.RunGrpcServer()
//go db.RunGrpcServer()
return nil
})

View File

@ -12,7 +12,6 @@ import (
_ "mongo.games.com/game"
"mongo.games.com/game/common"
"mongo.games.com/game/db"
"mongo.games.com/game/model"
"mongo.games.com/game/mq"
)
@ -30,7 +29,7 @@ func main() {
core.LoadPackages("config.json")
// core hook
core.RegisteHook(core.HOOK_BEFORE_START, func() error {
db.NewGrpcClientConn()
//db.NewGrpcClientConn()
model.StartupRPClient(common.CustomConfig.GetString("MgoRpcCliNet"), common.CustomConfig.GetString("MgoRpcCliAddr"), time.Duration(common.CustomConfig.GetInt("MgoRpcCliReconnInterV"))*time.Second)
mq.StartConsumer(common.CustomConfig.GetString("RabbitMQURL"), common.CustomConfig.GetString("RMQExchange"), true)
mq.StartPublisher(common.CustomConfig.GetString("RabbitMQURL"), common.CustomConfig.GetString("RMQExchange"), true, common.CustomConfig.GetInt("RMQPublishBacklog"))