feat 基础模块拆分为雪花和日志模块
This commit is contained in:
@@ -14,10 +14,7 @@ type Program struct {
|
||||
}
|
||||
|
||||
func (p *Program) Init(_ svc.Environment) error {
|
||||
if err := config.LoadConfig(); err != nil {
|
||||
return err
|
||||
}
|
||||
p.moduleList = append(p.moduleList, &module.Base{Log: config.Get().Log})
|
||||
p.moduleList = append(p.moduleList, &module.Log{Cfg: config.Get().Log})
|
||||
p.moduleList = append(p.moduleList, &ModuleWebsocket{})
|
||||
p.moduleList = append(p.moduleList, &ModulePprof{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user