sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/library/websocket"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/router"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/service"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/service/allocatedispatch"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/tasks"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
@@ -41,7 +42,10 @@ var Http = &gcmd.Command{
|
||||
s.SetDumpRouterMap(dumpRouterMap)
|
||||
router.InitRouter(ctx, s)
|
||||
websocket.StartWebSocket(ctx)
|
||||
stopAllocateRecovery := allocatedispatch.Start(ctx)
|
||||
defer stopAllocateRecovery()
|
||||
s.Run()
|
||||
stopAllocateRecovery()
|
||||
inithttp.CleanupHttp(ctx)
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user