调整Centrifugo grpc初始化位置

This commit is contained in:
walker 2023-10-25 10:28:41 +08:00
parent 66ae6914b5
commit dd3d29149a
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,6 @@ func InitSimulationRouter(api *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
// 初始化地图信息 // 初始化地图信息
initPublishMapInfo() initPublishMapInfo()
apiproto.InitClient()
apiproto.Register(&apiproto.SimulationServer{}) apiproto.Register(&apiproto.SimulationServer{})
apiproto.Register(&apiproto.SimulationIBPServer{}) apiproto.Register(&apiproto.SimulationIBPServer{})
apiproto.Register(&apiproto.SimulationPSLServer{}) apiproto.Register(&apiproto.SimulationPSLServer{})

View File

@ -8,6 +8,7 @@ import (
"joylink.club/bj-rtsts-server/api" "joylink.club/bj-rtsts-server/api"
"joylink.club/bj-rtsts-server/config" "joylink.club/bj-rtsts-server/config"
"joylink.club/bj-rtsts-server/docs" "joylink.club/bj-rtsts-server/docs"
apiproto "joylink.club/bj-rtsts-server/grpcproto"
"joylink.club/bj-rtsts-server/middleware" "joylink.club/bj-rtsts-server/middleware"
"joylink.club/bj-rtsts-server/third_party" "joylink.club/bj-rtsts-server/third_party"
@ -26,6 +27,7 @@ import (
func main() { func main() {
engine := InitServer() engine := InitServer()
apiproto.InitClient()
third_party.Init() third_party.Init()
authMiddleware := middleware.InitGinJwtMiddleware() authMiddleware := middleware.InitGinJwtMiddleware()
router := engine.Group("/api") router := engine.Group("/api")