feat 废弃jwt 、 学识分

This commit is contained in:
2026-02-06 22:31:32 +08:00
parent ac44c0bd43
commit 47476d530c
4 changed files with 6 additions and 37 deletions

View File

@@ -14,18 +14,14 @@ type Program struct {
}
func (p *Program) Init(_ svc.Environment) error {
base := &ModuleBase{}
if err := base.Init(); err != nil {
if err := config.LoadConfig(); err != nil {
return err
}
p.moduleList = append(p.moduleList, base)
p.moduleList = append(p.moduleList, (&module.Base{}).Bind(config.Get().Log))
p.moduleList = append(p.moduleList, &ModuleWebsocket{})
p.moduleList = append(p.moduleList, &ModulePprof{})
for i, m := range p.moduleList {
if i == 0 {
continue
}
for _, m := range p.moduleList {
if err := m.Init(); err != nil {
return err
}