summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool.go')
-rw-r--r--static_pool.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/static_pool.go b/static_pool.go
index 735bc701..2186227b 100644
--- a/static_pool.go
+++ b/static_pool.go
@@ -107,9 +107,7 @@ func (p *StaticPool) Workers() (workers []*Worker) {
p.muw.RLock()
defer p.muw.RUnlock()
- for _, w := range p.workers {
- workers = append(workers, w)
- }
+ workers = append(workers, p.workers...)
return workers
}