feat 模块删除bind函数
This commit is contained in:
@@ -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{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user