diff --git a/pkg/middle/worker.go b/pkg/middle/worker.go index 7d78b2d..67eadb1 100644 --- a/pkg/middle/worker.go +++ b/pkg/middle/worker.go @@ -11,6 +11,7 @@ func (m *MiddleWare) middleWorker() { for _, singles := range m.plugins { for _, single := range singles { single.Exec(workEvent) + } } diff --git a/pkg/middle/worker_test.go b/pkg/middle/worker_test.go index 4bdbcf5..332d7ef 100644 --- a/pkg/middle/worker_test.go +++ b/pkg/middle/worker_test.go @@ -8,6 +8,7 @@ import ( func TestWorker(t *testing.T) { event := event.NewEvent("LogContext") + m := NewMiddleWare() m.eventDriver.Put(event)