summaryrefslogtreecommitdiff
path: root/plugins/http
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http')
-rw-r--r--plugins/http/plugin.go7
1 files changed, 1 insertions, 6 deletions
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