fix(middle): fix middleware name msg

This commit is contained in:
bandl 2021-10-12 15:10:53 +08:00
parent b61794d74b
commit e3c7546023
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ func (m *MiddleWare) loadPlugins() {
pluginsContext := make(map[string][]plugins.MiddleToolsInterface) pluginsContext := make(map[string][]plugins.MiddleToolsInterface)
for middleMsg, pluNames := range plug { for msg, pluNames := range plug {
pulgSingle := make([]plugins.MiddleToolsInterface, 0) pulgSingle := make([]plugins.MiddleToolsInterface, 0)
for _, name := range pluNames { for _, name := range pluNames {
pulgSingle = append(pulgSingle, pluginsMap[name]) pulgSingle = append(pulgSingle, pluginsMap[name])
} }
pluginsContext[middleMsg] = pulgSingle pluginsContext[msg] = pulgSingle
} }
m.plugins = pluginsContext m.plugins = pluginsContext