From da64d9fbab7d73e203e7dbbb9503f4d422feaab0 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 8 Feb 2021 23:21:54 +0300 Subject: BaseProcess interface as a return type in the worker_watcher,pool and worker interface --- plugins/http/plugin.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/http/plugin.go') diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index ff0c1c30..bab03edc 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -305,12 +305,7 @@ func (s *Plugin) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (s *Plugin) Workers() []worker.BaseProcess { s.Lock() defer s.Unlock() - workers := s.pool.Workers() - baseWorkers := make([]worker.BaseProcess, 0, len(workers)) - for i := 0; i < len(workers); i++ { - baseWorkers = append(baseWorkers, worker.FromSync(workers[i].(*worker.SyncWorkerImpl))) - } - return baseWorkers + return s.pool.Workers() } // Name returns endure.Named interface implementation -- cgit v1.2.3