diff options
author | Wolfy-J <[email protected]> | 2019-12-23 12:02:51 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-12-23 12:02:51 +0300 |
commit | 028ff585f8f8a42f4796afdb932f97eee6eb8f4c (patch) | |
tree | 464b58826cae5bed2a25866b21e6c26cc900fe3d /service/container.go | |
parent | fbf5e2e677b7c1f89114a29acdd834536316ab73 (diff) |
- minor performance fix in container
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/container.go b/service/container.go index 06609ffc..0be4f853 100644 --- a/service/container.go +++ b/service/container.go @@ -217,7 +217,7 @@ func (c *container) Stop() { // List all service names. func (c *container) List() []string { - names := make([]string, 0) + names := make([]string, 0, len(c.services)) for _, e := range c.services { names = append(names, e.name) } |