feat 模块删除bind函数

This commit is contained in:
2026-02-06 22:54:01 +08:00
parent 47476d530c
commit 8d28c50c27
3 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ func (p *Program) Init(_ svc.Environment) error {
if err := config.LoadConfig(); err != nil {
return err
}
p.moduleList = append(p.moduleList, (&module.Base{}).Bind(config.Get().Log))
p.moduleList = append(p.moduleList, &module.Base{Log: config.Get().Log})
p.moduleList = append(p.moduleList, &ModuleWebsocket{})
p.moduleList = append(p.moduleList, &ModulePprof{})