feat 基础模块拆分为雪花和日志模块

This commit is contained in:
2026-02-07 13:15:29 +08:00
parent 8d28c50c27
commit 3b8378cc72
4 changed files with 8 additions and 7 deletions

View File

@@ -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{})