diff --git a/pkg/middle/middleware.go b/pkg/middle/middleware.go index 69aa18d..39b8c5a 100644 --- a/pkg/middle/middleware.go +++ b/pkg/middle/middleware.go @@ -52,13 +52,13 @@ func (m *MiddleWare) loadPlugins() { pluginsContext := make(map[string][]plugins.MiddleToolsInterface) - for middleMsg, pluNames := range plug { + for msg, pluNames := range plug { pulgSingle := make([]plugins.MiddleToolsInterface, 0) for _, name := range pluNames { pulgSingle = append(pulgSingle, pluginsMap[name]) } - pluginsContext[middleMsg] = pulgSingle + pluginsContext[msg] = pulgSingle } m.plugins = pluginsContext