no message
This commit is contained in:
parent
07e252aa1d
commit
6693bf7438
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue