summaryrefslogtreecommitdiff
path: root/plugins/server/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/server/plugin.go')
-rw-r--r--plugins/server/plugin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go
index 42273ed7..038d83d4 100644
--- a/plugins/server/plugin.go
+++ b/plugins/server/plugin.go
@@ -148,7 +148,7 @@ func (server *Plugin) NewWorkerPool(ctx context.Context, opt *pool.Config, env E
return nil, errors.E(op, err)
}
- list := make([]events.Listener, 0, 22)
+ list := make([]events.Listener, 0, 2)
list = append(list, server.collectPoolEvents, server.collectWorkerEvents)
if len(listeners) != 0 {
list = append(list, listeners...)