提交 c33da749 authored 作者: mooncake's avatar mooncake

update

上级 84ec9d94
......@@ -94,10 +94,12 @@ func (x *Application) Run() {
eventbus.Eb.Publish(ctx, eventbus.TopicCronInitFinish)
eventbus.Eb.Publish(ctx, eventbus.TopicRdInit)
eventbus.Eb.Publish(ctx, eventbus.TopicRdInitFinish)
services := CreateServices(x.router())
eventbus.Eb.Publish(ctx, eventbus.TopicGinEngineCreated)
eventbus.Eb.Publish(ctx, eventbus.TopicPrintSwagger)
services := CreateServices(x.router())
closes := Close(services)
x.app = app.New(services, closes)
x.app.Run()
......
......@@ -121,9 +121,6 @@ func New() *gin.Engine {
prof.Register(r, prof.WithIOWaitTime())
}
// binding.Validator = validator.Init()
// r.Use(xvalidator.Translation())
weblogutils.Init()
if config.IsNotProd() {
......@@ -144,7 +141,6 @@ func New() *gin.Engine {
r.GET("/codes", handlerfunc.ListCodes)
global.G.Engine = r
eventbus.Eb.Publish(context.TODO(), eventbus.TopicGinEngineCreated)
xcron.Init()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论