优化结构
This commit is contained in:
@@ -104,6 +104,10 @@ func NewGinEngineWithRuntime(runtime *config.Store, access *systemservice.Access
|
|||||||
if ws != nil && ws.Enabled() {
|
if ws != nil && ws.Enabled() {
|
||||||
engine.GET(ws.Path(), handleWebSocket)
|
engine.GET(ws.Path(), handleWebSocket)
|
||||||
}
|
}
|
||||||
|
if logger != nil {
|
||||||
|
logger.Info("websocket endpoint initialized", "mod", "websocket",
|
||||||
|
"enabled", ws != nil && ws.Enabled(), "path", websocketPath(ws))
|
||||||
|
}
|
||||||
env := ""
|
env := ""
|
||||||
if snapshot != nil && snapshot.Admin != nil && snapshot.Admin.App != nil {
|
if snapshot != nil && snapshot.Admin != nil && snapshot.Admin.App != nil {
|
||||||
env = strings.ToLower(strings.TrimSpace(snapshot.Admin.App.Env))
|
env = strings.ToLower(strings.TrimSpace(snapshot.Admin.App.Env))
|
||||||
|
|||||||
Reference in New Issue
Block a user