fix(middle): fix middleware name msg
This commit is contained in:
parent
b61794d74b
commit
e3c7546023
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue