summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-12-23 12:02:51 +0300
committerWolfy-J <[email protected]>2019-12-23 12:02:51 +0300
commit028ff585f8f8a42f4796afdb932f97eee6eb8f4c (patch)
tree464b58826cae5bed2a25866b21e6c26cc900fe3d
parentfbf5e2e677b7c1f89114a29acdd834536316ab73 (diff)
- minor performance fix in container
-rw-r--r--service/container.go2
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)
}